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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Export by Macro

Hi

I have created a macro that exports multiple objects to a single excel workbook.

However whenever the macro executes, all objects gets opened (if minimized) and maximized. How can I prevent this from happening?

I want to be able to export without any object opening up first.

Labels (1)
1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Comment out these two lines:

set objSource = qvDoc.GetSheetObject(qvObjectId)

'Call objSource.GetSheet().Activate()

'objSource.Maximize

qvDoc.GetApplication.WaitForIdle

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
Chanty4u
MVP
MVP

jonathandienst
Partner - Champion III
Partner - Champion III

Comment out these two lines:

set objSource = qvDoc.GetSheetObject(qvObjectId)

'Call objSource.GetSheet().Activate()

'objSource.Maximize

qvDoc.GetApplication.WaitForIdle

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein