Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2007

Tip: Looking for answers? Try searching our database.

How to put VBA formula in Excel Sheet

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
EricBB - 01 Nov 2007 06:16 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.