Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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.

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