Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Macro not working in QV9

I have a simple macro which was working fine with QV 8.5, however since I upgraded to version 9 the macro opens the edit module screen when it first tries to run as if there is something wrong with the macro, however it works fine when I OK out of the edit module screen.

The macros is simply:

sub ZoomToFitWindow

ActiveDocument.ActiveSheet.FitZoomToWindow

end sub

Does anyone have any suggestions?

Thanks

1 Solution

Accepted Solutions
Not applicable
Author

fixed by adding

ActiveDocument.GetApplication.WaitForIdle

to the macro



View solution in original post

2 Replies
Not applicable
Author

fixed by adding

ActiveDocument.GetApplication.WaitForIdle

to the macro



Not applicable
Author

Hey mcolombini

I have a similar issue except with mine, when i select run macro and i type in FitZoomToWindow, it doesn't work. it is supposed to run as soon as the sheet opens but it does nothing.

Any ideas on how to solve this?