Group & Outline - how do I hide detail programmatically

S

Sam Wilson

Dear all,

I've written some code that runs down a column and uses the data therein to
group some rows together. All so far so good, but I want the default display
to be with detail hidden.

Any pointers?
 
S

Sam Wilson

I'm going to answer my own question in case anyone else searches and finds
it...

I used ExecuteExcel4Macro "SHOW.DETAIL(a,b,c,d)"

In the string a,b,c,d the letters represent the following:

a=1 (indicates rows)
b=last row number to hide
c=FALSE (indicates hide, TRUE indicates show)
d= row above where group starts

Sam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top