• Home
  • Blog
  • Resume
  • Contact
  • Projects
  • Gallery
  • Amit’s Resume
  • About Nagpur
KEEP IN TOUCH

Change the creation date of a workbook

Feb16
2005
Leave a Comment Written by admin

Two of my colleagues in the office wanted to know how can they change the creation date of a workbook, and I knew there would be some property of the Workbook, which can be accessed thru VBA. So here is the simple sub to get the new creation date and the message boxes will show you the old and the new date.

  1. Open the workbook you want to change the creation date of.
  2. Press Alt + F11 to bring the VBE window.
  3. Paste this code.
  4. Then run the code by pressing F5.
  5. Delete the code after using it.

Public Sub prop()
MsgBox “Old creation date is ” & ActiveWorkbook.BuiltinDocumentProperties(11)
‘enter the date you want to change and this is the US date format
ActiveWorkbook.BuiltinDocumentProperties(11) = “2/14/2004″
MsgBox “New creation date is ” & ActiveWorkbook.BuiltinDocumentProperties(11)
End Sub

Related posts:

  1. Importing IE bookmark
Posted in Uncategorized - Tagged Press Alt F11, Public Sub, US, VBE
SHARE THIS Twitter Facebook Delicious StumbleUpon E-mail
« Importing IE bookmark
» Isworksheetopen and Isworkbookopen functions

No Comments Yet

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

*

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Tags

Access Alt F8 Books boxplot cells charts count cursor dashboard data mining dbase design error excel excel functions export filter flip LaTex MS query Number Err ODBC pipes Press Alt F11 Public Sub python R random numbers Range Cells report scripting software sparklines SQL SQL server stack columns statistics stemming string tag cloud text mining UDF VBA visualization wildcard

Network

View Ashutosh Nandeshwar's profile on LinkedIn

Recent Comments

  • W. McNabb on The search key was not found in any record in Access
  • Manuel on The search key was not found in any record in Access
  • Wendy Naples on The search key was not found in any record in Access
  • larry on Access Export to Excel (2007)
  • Betty Chou on Projects

Related Posts

  1. Importing IE bookmark

EvoLve theme by Blogatize  •  Powered by WordPress nandeshwar.info