Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-11-2023, 09:14 PM
acmuller acmuller is offline Run an ms word vba macro before a specific time Windows 10 Run an ms word vba macro before a specific time Office 2010
Novice
Run an ms word vba macro before a specific time
 
Join Date: Nov 2023
Posts: 2
acmuller is on a distinguished road
Default Run an ms word vba macro before a specific time

In ms word, I have a VBA macro that runs each time I start Word. But I would like it to run only the first time I start my computer in the morning, not every time during the day. I have discovered the function of
Application.OnTime TimeValue("xxxx"),

But I would like it to run only before 11 am, and not after that. Or, on the first startup of Word


and not after that. I think I need to use a variable for the time value,
But I am not sure how that would work.

Any ideas?
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to navigate to specific point in line (Word 97) Genericname1111 Word 13 10-06-2019 08:54 PM
Run an ms word vba macro before a specific time Macro to select multiple sentences that contain a specific word MauiTruss Word VBA 7 10-03-2018 03:46 PM
Executing a Word macro only after a certain date & time rdross51 Word VBA 4 07-07-2017 06:29 AM
Help with Macro to Save Word File as PDF in Specific Location ekimisme Word VBA 1 06-07-2017 10:40 PM
Run an ms word vba macro before a specific time Excel Macro finding a specific word ducky831 Excel Programming 3 09-17-2015 01:36 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:45 AM.


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