PDA

View Full Version : [SOLVED:] Versions 97, 2000, & 2003 vbGeneralDate



khalid79m
10-23-2008, 04:35 AM
I have the following code:


With Activcell
.Valule=FormatDateTime(Now,vbGeneralDate)
.value=.value
End with


This code works fine in 2000 & 2003 but in 1997 it comes up with the following

Complie Error
Variable Not Found.

I need this code to work in 97,2000 & 2003

Can anyone assist

markmrw
10-23-2008, 04:38 AM
Try using this

.value=Now()
instead of

.value=FormatDateTime

Mark

khalid79m
10-30-2008, 09:21 AM
thanks mate works a treat

markmrw
10-30-2008, 09:41 AM
no worries :)