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 / October 2007

Tip: Looking for answers? Try searching our database.

date stamp

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Steve - 31 Oct 2007 11:23 GMT
Hi all,

Using the code below was expecting it too place the current date into
cell h(irow), but am coming up with a compile error.

Any help please

Private Sub cmdadd_Click()
Dim iRow As Long

   With Me
       iRow = .ComboBox1.ListIndex + 2
       Worksheets("All Deals").Cells(iRow, "e").Value
= .TextBox2.Text
       Worksheets("All Deals").Cells(iRow, "h").Value = .Format(Date,
"dd/mmm/yy")
   End With
Me.ComboBox1.Value = ""
Me.TextBox1.Value = ""
End sub
OssieMac - 31 Oct 2007 11:53 GMT
Hi Steve,

Try removing the dot in front of Format. Format is a function and not an
object related to with Me.

regards,

OssieMac

> Hi all,
>
[quoted text clipped - 16 lines]
> Me.TextBox1.Value = ""
> End sub
Steve - 31 Oct 2007 12:52 GMT
> Hi Steve,
>
[quoted text clipped - 27 lines]
>
> - Show quoted text -

Thanks Ossie,

amazing what a simple Dot can do, din't even realise it was there lol

Steve

Rate this thread:






 
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.