Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Storing the file creation date in a cell

Status
Not open for further replies.

BajanPOET

Programmer
Jul 12, 2002
194
BB
I would like to store the date a purchase order is generated in a spreadsheet. I was trying to use this code in the spreadsheet to store the date in cell E3
Code:
Worksheets("LPO").E3.Value = Date
but I was getting this error message:

Object doesn't support this property or method. What gives?

If I can get this to work, I will test the value of E3 using an IF statement. If E3 is blank, store the current date. If E3 already has a date, leave that date intact.

What? Who? ME????
 
Try this:
yourWorkbookObject.Worksheets("LPO").Range("E3").Value = Date

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top