Issue with timer and macro

mateoj

New Member
Joined
Jul 13, 2023
Messages
1
Platform
  1. Windows
1689264299968.png

1689264306784.png

1689264403285.png

I'm trying to make this work so after 5 seconds of batteryButton being clicked it shows scenario 2. However I keep getting a macro error saying it cannot run the macro EndSelfTest. Would anyone know of a fix? The grad student at my research lab thinks it might be with the timer not working due to the way time is being called.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Welcome to the MrExcel forum. Please accept my warmest greetings and sincere hope that all is well.

Note Code Tag:
Please use code tags when posting code.
How to Post Your VBA Code it makes your code easier to read and copy, it also maintains VBA formatting and thereby increasing you chances of getting help.

;)
 
Upvote 0

Forum statistics

Threads
1,216,113
Messages
6,128,907
Members
449,478
Latest member
Davenil

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top