Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
This is a repost as my one this morning doesn't appear to have saved,
so ap;ologies if I end up raising the same question twice. I have a macro called 'Update_Me'which I would like to run automatically on the first of each month (when excel is opened, obviously). How do I go about this? Thanks in advance Steve |
#2
![]() |
|||
|
|||
![]()
Try something like:
Sub Workbook_Open() Dim dToday As Date dToday = Now If Day(dToday) = 1 Then 'rest of code here End If End Sub --- Place this in ThisWorkbook module. HTH Jason Atlanta, GA "Steve" wrote: This is a repost as my one this morning doesn't appear to have saved, so ap;ologies if I end up raising the same question twice. I have a macro called 'Update_Me'which I would like to run automatically on the first of each month (when excel is opened, obviously). How do I go about this? Thanks in advance Steve |
#3
![]() |
|||
|
|||
![]()
Hi Jason
I tested this and it worked perfectly. Thank you. Steve |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert date in macro | New Users to Excel | |||
How do I insert the date using a macro | Excel Discussion (Misc queries) | |||
Date macro | Excel Discussion (Misc queries) | |||
how to alter the date within a macro | Excel Discussion (Misc queries) | |||
Date and Time Macro | Excel Discussion (Misc queries) |