hi there,
how can i fix the error for this VBA?
Sub PutDate()
Range("A1") = "="Date :" & TEXT(TODAY(),"dd-mm-yy")"
End Sub
pls. help me for this. thanks in advance.
EricBB
JE McGimpsey - 01 Nov 2007 06:58 GMT
One way:
Public Sub PutDate()
Range("A1").Formula = "=""Date :"" & TEXT(TODAY(),""dd-mm-yy"")"
End Sub
Note that quotes within the formula string must be doubled.
> hi there,
> how can i fix the error for this VBA?
[quoted text clipped - 3 lines]
> pls. help me for this. thanks in advance.
> EricBB