tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi everyone,
A problem i've come across a lot recently.
Lets say I have 10 macros in my document.
each one runs and is used on its own so at the beggining i have
"Application.ScreenUpdating = False"
then code then
A problem i've come across a lot recently.
Lets say I have 10 macros in my document.
each one runs and is used on its own so at the beggining i have
"Application.ScreenUpdating = False"
then code then
"Application.ScreenUpdating = True"
all works great, but then lets say I have a macro that calls on 5 of those macros
it would be something like this
(just an example!)
so this is what i'm having a problem with
Allmacs runs, turns off screen updating, runs mac1, when mac1 end it turns screenupdating back on and my screen flickersor changes to the new frame then it switches of again and so on for all the macros.
so is there a way I can say "Until this macro is finished, ignore any commands for
</strike>
all works great, but then lets say I have a macro that calls on 5 of those macros
it would be something like this
Code:
Sub AllMacs
[LEFT][COLOR=#222222][FONT=Verdana]Application.ScreenUpdating = False
call mac1[/FONT][/COLOR]
[COLOR=#222222][FONT=Verdana]call mac2[/FONT][/COLOR]
[COLOR=#222222][FONT=Verdana]call mac3[/FONT][/COLOR]
[COLOR=#222222][FONT=Verdana]call mac4[/FONT][/COLOR]
[COLOR=#222222][FONT=Verdana]call mac5
[LEFT][COLOR=#222222][FONT=Verdana][LEFT][COLOR=#222222][FONT=Verdana]Application.ScreenUpdating = true
end sub[/FONT][/COLOR][/LEFT][/FONT][/COLOR][/LEFT][B][I][U][SUB][SUP]<strike>
</strike>[/SUP][/SUB][/U][/I][/B][/FONT][/COLOR][/LEFT]
so this is what i'm having a problem with
Allmacs runs, turns off screen updating, runs mac1, when mac1 end it turns screenupdating back on and my screen flickersor changes to the new frame then it switches of again and so on for all the macros.
so is there a way I can say "Until this macro is finished, ignore any commands for
Application.ScreenUpdating = true??
any ideas, if i'm doing this wrong just let me know please.
thanks
Tony
<strike>any ideas, if i'm doing this wrong just let me know please.
thanks
Tony
</strike>