Login

Welcome, Guest. Please login or register.

November 27, 2025, 10:41:06 am

Author Topic: EXCEL Static Date Stamps  (Read 2992 times)  Share 

0 Members and 1 Guest are viewing this topic.

jsimmo

  • Victorian
  • Forum Leader
  • ****
  • Posts: 847
  • Respect: +32
EXCEL Static Date Stamps
« on: August 15, 2008, 07:42:05 pm »
0
Does anyone know how I can have the data entry date appear in column A once data has been entered in column B?

I want the date to be static so it doesn't refresh every day.

I have been looking at a few VB formulas on the net but none seem to work and I can't make my own.
2008: English , Business Management , IT: Applications , Further Maths , Studio Arts 
2009: Monash University

Mao

  • CH41RMN
  • Honorary Moderator
  • Great Wonder of ATAR Notes
  • *******
  • Posts: 9181
  • Respect: +390
  • School: Kambrya College
  • School Grad Year: 2008
Re: EXCEL Static Date Stamps
« Reply #1 on: August 15, 2008, 08:01:49 pm »
0
past this onto the VBA page for the relevant worksheet

Code: (VB) [Select]
Private Sub Worksheet_Change(ByVal Target As Range) 'every time a value in any cell within the worksheet changes
     If Target.Column = 2 Then 'if the data in column B has changed
          Range("A" & Target.Row) = Date 'date will be inserted in column A in the same row
     End If
End Sub
Editor for ATARNotes Chemistry study guides.

VCE 2008 | Monash BSc (Chem., Appl. Math.) 2009-2011 | UoM BScHon (Chem.) 2012 | UoM PhD (Chem.) 2013-2015

jsimmo

  • Victorian
  • Forum Leader
  • ****
  • Posts: 847
  • Respect: +32
Re: EXCEL Static Date Stamps
« Reply #2 on: August 15, 2008, 08:04:10 pm »
0
FINALLY, it works! lol

Thanks heaps!! I have been testing all these other formulas and they only worked within 1 row and not the entire column.. but yours works, thanks!
2008: English , Business Management , IT: Applications , Further Maths , Studio Arts 
2009: Monash University

Mao

  • CH41RMN
  • Honorary Moderator
  • Great Wonder of ATAR Notes
  • *******
  • Posts: 9181
  • Respect: +390
  • School: Kambrya College
  • School Grad Year: 2008
Re: EXCEL Static Date Stamps
« Reply #3 on: August 15, 2008, 08:13:08 pm »
0
Visual Basics is worth learning =] as crap as it is [as a programming language], its seamless integration with MSEXCEL and MSACCESS is so handy, and if you get the Enterprise package that exports .exe, it's the most handy thing to have around when you want to quickly knock up a useable application [with no fuss making the GUI... the other languages are PAINFUL when it comes to GUIs]
Editor for ATARNotes Chemistry study guides.

VCE 2008 | Monash BSc (Chem., Appl. Math.) 2009-2011 | UoM BScHon (Chem.) 2012 | UoM PhD (Chem.) 2013-2015

costargh

  • Guest
Re: EXCEL Static Date Stamps
« Reply #4 on: August 15, 2008, 11:06:45 pm »
0
does anyone have any spiffy little programs they have written or applications they have made etc that can be sent and opened on any normal comp?

Id liek to see the work u guys do in IT

excal

  • VN Security
  • Victorian
  • ATAR Notes Legend
  • *******
  • Posts: 3490
  • Über-Geek
  • Respect: +21
Re: EXCEL Static Date Stamps
« Reply #5 on: August 16, 2008, 03:09:23 am »
0
I have plenty, but they're not my intellectual property :P

But I'm working on this: Monash University eAdmissions

aidansteele has written a fair few things though...the combubulator and various other things

He also does this in his spare time: Komodo CMS
excal (VCE 05/06) BBIS(IBL) GradCertSc(Statistics) MBBS(Hons) GCertClinUS -- current Master of Medicine candidate
Former Global Moderator

excal

  • VN Security
  • Victorian
  • ATAR Notes Legend
  • *******
  • Posts: 3490
  • Über-Geek
  • Respect: +21
Re: EXCEL Static Date Stamps
« Reply #6 on: August 16, 2008, 03:14:41 am »
0
Visual Basics is worth learning =] as crap as it is [as a programming language], its seamless integration with MSEXCEL and MSACCESS is so handy, and if you get the Enterprise package that exports .exe, it's the most handy thing to have around when you want to quickly knock up a useable application [with no fuss making the GUI... the other languages are PAINFUL when it comes to GUIs]

They seriously need to update the language, the syntax is still very much VB5 (VB, on the other hand, has advnaced 3 or 4 versions).

Also, object orientation would be nice...

I've heard of VSTA, but I'm not sure what the implication that has in terms of programming. If only I could then use C#...I would be in heaven (it's the least evil child of the .NET family :P)
excal (VCE 05/06) BBIS(IBL) GradCertSc(Statistics) MBBS(Hons) GCertClinUS -- current Master of Medicine candidate
Former Global Moderator

Mao

  • CH41RMN
  • Honorary Moderator
  • Great Wonder of ATAR Notes
  • *******
  • Posts: 9181
  • Respect: +390
  • School: Kambrya College
  • School Grad Year: 2008
Re: EXCEL Static Date Stamps
« Reply #7 on: August 16, 2008, 08:45:39 am »
0
Visual Basics is worth learning =] as crap as it is [as a programming language], its seamless integration with MSEXCEL and MSACCESS is so handy, and if you get the Enterprise package that exports .exe, it's the most handy thing to have around when you want to quickly knock up a useable application [with no fuss making the GUI... the other languages are PAINFUL when it comes to GUIs]

They seriously need to update the language, the syntax is still very much VB5 (VB, on the other hand, has advnaced 3 or 4 versions).

Also, object orientation would be nice...

I've heard of VSTA, but I'm not sure what the implication that has in terms of programming. If only I could then use C#...I would be in heaven (it's the least evil child of the .NET family :P)

i reckon, haha

but then, i suppose its a compromise between power and efficiency. VBA imo is very light-weight. if they decide to upgrade it to VB.NET, i think it'll chew up a fair bit more system resources, considering that the MSOFFICE application is already running. In terms of productivity, i don't think that's a good sacrafice, since the scripts need not be so complicated in VBA. [with that said, automatic formatting would be nice... it's so confusing xD]
Editor for ATARNotes Chemistry study guides.

VCE 2008 | Monash BSc (Chem., Appl. Math.) 2009-2011 | UoM BScHon (Chem.) 2012 | UoM PhD (Chem.) 2013-2015

Mao

  • CH41RMN
  • Honorary Moderator
  • Great Wonder of ATAR Notes
  • *******
  • Posts: 9181
  • Respect: +390
  • School: Kambrya College
  • School Grad Year: 2008
Re: EXCEL Static Date Stamps
« Reply #8 on: August 16, 2008, 08:54:29 am »
0
does anyone have any spiffy little programs they have written or applications they have made etc that can be sent and opened on any normal comp?

Id liek to see the work u guys do in IT

here's something i knocked up to decipher this thread
nothing flash, if you aren't careful it'll throw errors at you
Editor for ATARNotes Chemistry study guides.

VCE 2008 | Monash BSc (Chem., Appl. Math.) 2009-2011 | UoM BScHon (Chem.) 2012 | UoM PhD (Chem.) 2013-2015

excal

  • VN Security
  • Victorian
  • ATAR Notes Legend
  • *******
  • Posts: 3490
  • Über-Geek
  • Respect: +21
Re: EXCEL Static Date Stamps
« Reply #9 on: August 16, 2008, 10:54:35 am »
0
Visual Basics is worth learning =] as crap as it is [as a programming language], its seamless integration with MSEXCEL and MSACCESS is so handy, and if you get the Enterprise package that exports .exe, it's the most handy thing to have around when you want to quickly knock up a useable application [with no fuss making the GUI... the other languages are PAINFUL when it comes to GUIs]

They seriously need to update the language, the syntax is still very much VB5 (VB, on the other hand, has advnaced 3 or 4 versions).

Also, object orientation would be nice...

I've heard of VSTA, but I'm not sure what the implication that has in terms of programming. If only I could then use C#...I would be in heaven (it's the least evil child of the .NET family :P)

i reckon, haha

but then, i suppose its a compromise between power and efficiency. VBA imo is very light-weight. if they decide to upgrade it to VB.NET, i think it'll chew up a fair bit more system resources, considering that the MSOFFICE application is already running. In terms of productivity, i don't think that's a good sacrafice, since the scripts need not be so complicated in VBA. [with that said, automatic formatting would be nice... it's so confusing xD]

TBH, I spend more time trying to get to gripes with the quirks in VBA syntax that it wouldn't matter anyway.

VB.net is still fairly lightweight, and more people would know VB.net over VB5/VBA. I mean...there's worse out there *looks at Java*
excal (VCE 05/06) BBIS(IBL) GradCertSc(Statistics) MBBS(Hons) GCertClinUS -- current Master of Medicine candidate
Former Global Moderator

jsimmo

  • Victorian
  • Forum Leader
  • ****
  • Posts: 847
  • Respect: +32
Re: EXCEL Static Date Stamps
« Reply #10 on: August 16, 2008, 06:14:24 pm »
0
Hey, The date stamps were working yesterday, but when I try to enter data in column B today the date doesn't appear in column A?
2008: English , Business Management , IT: Applications , Further Maths , Studio Arts 
2009: Monash University

Mao

  • CH41RMN
  • Honorary Moderator
  • Great Wonder of ATAR Notes
  • *******
  • Posts: 9181
  • Respect: +390
  • School: Kambrya College
  • School Grad Year: 2008
Re: EXCEL Static Date Stamps
« Reply #11 on: August 16, 2008, 08:44:46 pm »
0
did you save it as a macro-enabled worksheet?

and did you allow the security to run macros?
Editor for ATARNotes Chemistry study guides.

VCE 2008 | Monash BSc (Chem., Appl. Math.) 2009-2011 | UoM BScHon (Chem.) 2012 | UoM PhD (Chem.) 2013-2015

jsimmo

  • Victorian
  • Forum Leader
  • ****
  • Posts: 847
  • Respect: +32
Re: EXCEL Static Date Stamps
« Reply #12 on: August 16, 2008, 09:50:33 pm »
0
I think so? Could you explain what I would need to do.

EDIT: Everything is fixed.
« Last Edit: August 18, 2008, 02:27:27 pm by jsimmo »
2008: English , Business Management , IT: Applications , Further Maths , Studio Arts 
2009: Monash University