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

Adjusting column widths

Hi all,

Hopefully an easy one............

Is there a way to set the column widths in a PivotTable like you can do in Excel? i.e. rather than dragging one side of a column to adjust the width.

Thanks,

APS

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Yes, by macro, like this one, setting width of the first column(0) to 50:
sub Adjust
set ch = ActiveDocument.GetSheetObject("CH01")
ch.SetPixWidth 0, 50
end sub

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Yes, by macro, like this one, setting width of the first column(0) to 50:
sub Adjust
set ch = ActiveDocument.GetSheetObject("CH01")
ch.SetPixWidth 0, 50
end sub

Not applicable
Author

The macro is a nice idea and works well. It would be even better if it could be adapted to apply to all columns within an object rather than having to specify the width of each column.

Thanks.

Not applicable
Author

This doesn't appear to work in v10. I'm trying to use it on a straight table but I get the following error message:

Object doesn't support this property or method:  'ch.SetPixWidth'

Any ideas?

Thanks in advance.