Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-22-2019, 04:27 AM
eduzs eduzs is offline Macro / VBA to run at document startup Windows 10 Macro / VBA to run at document startup Office 2010 32bit
Expert
 
Join Date: May 2017
Posts: 266
eduzs is on a distinguished road
Default

Simply remove from Sub DATEPLUS7
Quote:
Selection.TypeText Text:=Format(Date + 7, "mmmm d, yyyy")
Quote:
Private Sub Document_Open()
If MsgBox("Run Macro?", vbYesNo, "Message") = vbYes Then Call DATEPLUS7
End Sub
Reply With Quote
 

Tags
current date, macro, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro / VBA to run at document startup start a macro with command Line startup switches Fesazu Word 3 02-08-2018 12:15 AM
Spell check macro within macro button field doesn't work in one document samuelle Word VBA 0 07-20-2016 02:27 AM
Macro / VBA to run at document startup StartUP location ptmuldoon Word 2 05-12-2015 12:19 PM
Save As Macro using first line of document as document name redzan Word VBA 1 01-31-2015 09:24 PM
Macro / VBA to run at document startup Merge doc on startup arkay Mail Merge 1 03-20-2012 11:50 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:44 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft