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 to Hide column and expand

Hi Everyone,

I am Exporting a table to excel from qlikview, Iam using

Columns("L1:P1").EntireColumn.Hidden = True

to hide the column in exported excel,

But this is not working.

Please help me on below issue.

Thanks in advance

Regards,

Harika.

2 Replies
Anil_Babu_Samineni

Tested Done !!

FUNCTION HideColumn(ch, n)
set ch = ActiveDocument.GetSheetObject(ch)
ch.SetPixWidth (n-1),0
set ch = Nothing
END FUNCTION

SUB ColHide
call HideColumn("CH01", '2')
END SUB

sub Anil
ActiveDocument.ClearCache
MSGBOX "OK Cache"
END SUB

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
tajmohamed30
Creator III
Creator III

hope you got the answer from Anil babu