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 hidden column to xls

hi all

I've been searching and I know how to conditionally hide/show

but yet to include it when users click the export to XLS button.

i need a macro to xls that includes hidden columns

i tried with :

set obj = ActiveDocument.GetSheetObject("CH02")

obj.SendToExcel

but it doesn't work for hidden columns

Can u help me pls?

Ty

1 Solution

Accepted Solutions
salto
Specialist II
Specialist II

Try with this one and let me know if it works...

Hope this helps!

View solution in original post

6 Replies
Not applicable
Author

no one

salto
Specialist II
Specialist II

Hi,

you could set a variable (let's say vShow) which is initialized as 0.

The column(s) you want to hide should have the value =$(vShow)=1 in the Conditional field, Expressions tab of the object. This way the column is hidden.

To export the chart to with the hidden column, place the macro between the two actions of the "Export with hidden column" button.

Hope this helps!

israrkhan
Specialist II
Specialist II

Hi

write a macro, in which first unhide(show) the column,

then export command,

then again hide the column....

all through macro...

Not applicable
Author

Sorry but it's my first macro

the hidden columns are B-C-D

set obj = ActiveDocument.GetSheetObject("CH02")

unhide(show)

obj.SendToExcel

hide(show)

it's right?

salto
Specialist II
Specialist II

Try with this one and let me know if it works...

Hope this helps!

Not applicable
Author

Hi,

i created variable  vShowColumn

This macro doesn't export hidden column :

vShowColumn=1

set obj = ActiveDocument.GetSheetObject("CH02")

obj.SendToExcel

vShowColumn=0

where is the error?

tyvm