Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

joao_matos
New Contributor II

Problem to Script execute the macro - macro to export sheets as image

hi everyone, I'm having an issue with Qlikview where my project have some sheets and I need that in the execution of my script, it execute the macro of my project where my macro will export an image of each one fom my sheets.

on my macro I have de code and te macro execute when I go Through the sheets.

the export function is working but is doesn't run when I execute the script.

can anyone help me??

2 Replies
sasiparupudi1
Honored Contributor III

Re: Problem to Script execute the macro - macro to export sheets as image

You have to call the activate method of the sheet

ex:

ActiveDocument.Sheets("Market").Activate

set newsheet=ActiveDocument.CreateSheet

set sp=newsheet.GetProperties

sp.Name="abc"

newsheet.setProperties sp

newsheet.Activate

joao_matos
New Contributor II

Re: Problem to Script execute the macro - macro to export sheets as image

Sorry for the late post, but I figured out a while ago.

The case the macro didn't execute properly was becuse I was using the type of view where I could see all the sheets.

When I unselected the option Show all sheets and objects in Security on Document's properties it all went fine.