R
rusty cranbrook
I don't really understand the AutoFit property. I've found that
pt.ActiveView.FieldSets(3).Fields(0).DetailAutoFit = True
will make the columns autofit on a pivot table that has a filter
field, a row field, a column field, and a detail field. I'm not sure
why the index value of 3 works - how is the index populated? I mean
how do I know what index value to hit?
Also, when I set the TitleBar.Caption value, the columns AutoFit. Why
is this?
pt.ActiveView.TitleBar.Caption = "Sigh..."
An additional note - the AutoFit expression I posted that "works",
does not work after setting the XMLData property of the pivot table,
unless I do something else like initiate a progrmattic pause first.
How can this make sense?
pt.ActiveView.FieldSets(3).Fields(0).DetailAutoFit = True
will make the columns autofit on a pivot table that has a filter
field, a row field, a column field, and a detail field. I'm not sure
why the index value of 3 works - how is the index populated? I mean
how do I know what index value to hit?
Also, when I set the TitleBar.Caption value, the columns AutoFit. Why
is this?
pt.ActiveView.TitleBar.Caption = "Sigh..."
An additional note - the AutoFit expression I posted that "works",
does not work after setting the XMLData property of the pivot table,
unless I do something else like initiate a progrmattic pause first.
How can this make sense?