Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Hide columns in a group on after VBA-procedure

Hello!

A bit of help needed please...

On a reporting-sheet, I have selected some columns (F:J) and made them
into a group (using menus DATA-GROUP). Now the user can select whether
to view these columns by clicking the '+' symbol, and hide them again
by clicking the '-' symbol.

Now, the report is built by a VBA-procedure when the user clicks a
'Build Report' button.

I would like the the group to be hidden by default after the report is
built. The way it is now, the group is in the state the user left it
before building the report.

How do I add a line in the procedure so that the group/columns are
hidden?


Regards,
-NorTor-

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Hide columns in a group on after VBA-procedure

Worksheets("Sheet2").Outline _
.ShowLevels columnLevels:=1

--
Regards,
Tom Ogilvy


"NorTor" wrote in message
...
Hello!

A bit of help needed please...

On a reporting-sheet, I have selected some columns (F:J) and made them
into a group (using menus DATA-GROUP). Now the user can select whether
to view these columns by clicking the '+' symbol, and hide them again
by clicking the '-' symbol.

Now, the report is built by a VBA-procedure when the user clicks a
'Build Report' button.

I would like the the group to be hidden by default after the report is
built. The way it is now, the group is in the state the user left it
before building the report.

How do I add a line in the procedure so that the group/columns are
hidden?


Regards,
-NorTor-



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Hide columns in a group on after VBA-procedure

Thank you so much Tom, just what I needed!


Regards,
NorTor



On Tue, 28 Jun 2005 09:28:20 -0400, "Tom Ogilvy"
wrote:

Worksheets("Sheet2").Outline _
.ShowLevels columnLevels:=1


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide Chart When Row Group Closed KMH Charts and Charting in Excel 0 January 28th 10 10:01 PM
Want to Hide columns in spreadsheet but NOT hide data in chart. KrispyData Charts and Charting in Excel 1 March 20th 09 04:45 PM
Hide/Unhide vs Group/Ungroup - Need Help Richard Excel Discussion (Misc queries) 5 August 28th 08 05:15 AM
Automatic Hide group of a columns based on cel value Rechie Excel Discussion (Misc queries) 5 July 16th 08 08:43 PM
Is there a simple procedure to hide rows if a condition is met fishingengineer Excel Discussion (Misc queries) 1 April 13th 07 08:26 PM


All times are GMT +1. The time now is 06:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"