BYUIStudent
New Member
- Joined
- Jun 25, 2015
- Messages
- 10
Hello everyone, Thank you in advanced for your help.
I would like to have a macro run when a workbook is opened but only if the current date of a cell doesn't match up with the system date.
What I have
Private Sub Autpen()
Application.ScreenUpdating = False
ActiveWorkbook.Connections("Query - Table1").Refresh
ActiveWorkbook.Connections("Query - Table2").Refresh
Application.ScreenUpdating = True
ActiveWorkbook.Save
End Sub
What I would like it to do is
If cell b3 in Sheet 3 = today's date then run above macro.
any help would be great thank you.
I would like to have a macro run when a workbook is opened but only if the current date of a cell doesn't match up with the system date.
What I have
Private Sub Autpen()
Application.ScreenUpdating = False
ActiveWorkbook.Connections("Query - Table1").Refresh
ActiveWorkbook.Connections("Query - Table2").Refresh
Application.ScreenUpdating = True
ActiveWorkbook.Save
End Sub
What I would like it to do is
If cell b3 in Sheet 3 = today's date then run above macro.
any help would be great thank you.