Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel macro - screen while macro runs

When I run my macro is can see it switching sheets and copy/pasting data. But this isn't really user-friendly. Is there a way to show a simple messagebox "The macro is running!" for the entire duration and OK only becomes clickable when the macro stops?

Thank you!

like image 781
CustomX Avatar asked Apr 18 '26 21:04

CustomX


1 Answers

In your code use:

Application.ScreenUpdating = False

//Your code

Application.ScreenUpdating = True

This will stop the screen flicker you are seeing...

like image 105
Alex P Avatar answered Apr 21 '26 11:04

Alex P



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!