Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-13-2024, 12:02 AM
RRB's Avatar
RRB RRB is offline Creating a reminder Windows 11 Creating a reminder Office 2021
Susan Flamingo
Creating a reminder
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 263
RRB is on a distinguished road
Default Creating a reminder

Hi friends,



is it possible in Word to trigger an event every, let's say half an hour?
For instance, if I wanted to bug me to remind me to do a certain task every half hour could that be written in VBA?
Also being that this Mac would have to be run in the background as to say would it eat up system resources and slow Word down?

Thank you and have a good day!

Susan Flamingo
Reply With Quote
  #2  
Old 03-13-2024, 08:22 AM
gmaxey gmaxey is offline Creating a reminder Windows 10 Creating a reminder Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,429
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

Yes it is possible. I have not done a full engineering or performance study but I would assume that process uses some system resources. Does it eat them up? I don't think so. You will have to try it for yourself:

Code:
Sub Reminder()
  Application.OnTime Now + TimeValue("00:30:00"), "ReminderMsg"
lbl_Exit:
  Exit Sub
End Sub
Sub ReminderMsg()
  If MsgBox("Wake up. Do you want to continue 30 minutes wake up calls?", vbYesNo, "Stop") = vbYes Then
    Reminder
  End If
lbl_Exit:
  Exit Sub
End Sub
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
  #3  
Old 03-13-2024, 09:28 AM
RRB's Avatar
RRB RRB is offline Creating a reminder Windows 11 Creating a reminder Office 2021
Susan Flamingo
Creating a reminder
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 263
RRB is on a distinguished road
Default

Works perfectly, of course.

If I would substitute a user form instead of the message box (inserted frmMyform.show) with two control buttons for continuing or stopping the macro, how would I continue or cancel the macro? Just like from a msg box?

The hierarchy of VBA is still very unclear to me...
Reply With Quote
  #4  
Old 03-14-2024, 03:54 AM
RRB's Avatar
RRB RRB is offline Creating a reminder Windows 11 Creating a reminder Office 2021
Susan Flamingo
Creating a reminder
 
Join Date: May 2014
Location: The Holy City of Jerusalem
Posts: 263
RRB is on a distinguished road
Default

It just dawned on me, that forget about resource usage, when this macro is running I will not be able to run any other macros, right?
If so I will trash the idea I had in mind...bummmmmmmer
Reply With Quote
  #5  
Old 03-14-2024, 08:02 AM
gmaxey gmaxey is offline Creating a reminder Windows 10 Creating a reminder Office 2019
Expert
 
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,429
gmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the roughgmaxey is a jewel in the rough
Default

Why don't you try and see what happens? I'm sure that is some cases you will have to pepper you code with a few DoEvents statements.

Why do you want to do this anyway? Why don't you just set a reoccurring alarm on your smartphone, watch, Google calendar etc.?
__________________
Greg Maxey
Please visit my web site at http://www.gregmaxey.com/
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook365 Reminder dazzawm Outlook 4 09-30-2023 05:06 AM
Why does task not set a new reminder? Jennifer Murphy Outlook 0 07-11-2018 05:47 AM
Reminder outlook 2016 nirv Outlook 0 10-23-2017 12:59 PM
Creating a reminder reminder for every 15 working days araamuthan Outlook 1 03-25-2015 11:49 PM
Help with Outlook reminder katkota Outlook 1 06-26-2010 06:18 PM

Other Forums: Access Forums

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


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