Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 347
Default Command Button Macro to Expand/Collapse Grouped Columns

Good Afternoon,
I'm not sure if this is possible but, what I'm trying to do is instead of
users seeing and using the +/- to expand column groups I'd like to use
command buttons and turn off the view of the groupings....An additional nice
feature of the button macro would be to unprotect/protect the sheet.

I appreciate any help you can offer in advance...

Respectfully,
Sam
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Command Button Macro to Expand/Collapse Grouped Columns

Sub cmdBtn()
Range("B:C").Columns.ShowDetail = False
End Sub

Try this: this is assuming column "A" has the +/- and column "B" and "C' are
part of that group.
"George" wrote:

Good Afternoon,
I'm not sure if this is possible but, what I'm trying to do is instead of
users seeing and using the +/- to expand column groups I'd like to use
command buttons and turn off the view of the groupings....An additional nice
feature of the button macro would be to unprotect/protect the sheet.

I appreciate any help you can offer in advance...

Respectfully,
Sam

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 347
Default Command Button Macro to Expand/Collapse Grouped Columns

Ayo Thank You for your response...My scenerio is a little different and if
you can give me a little more direction...The +/- is on Column "K" and
Columns "B -J" are part of the group...

Thanks Again.

"Ayo" wrote:

Sub cmdBtn()
Range("B:C").Columns.ShowDetail = False
End Sub

Try this: this is assuming column "A" has the +/- and column "B" and "C' are
part of that group.
"George" wrote:

Good Afternoon,
I'm not sure if this is possible but, what I'm trying to do is instead of
users seeing and using the +/- to expand column groups I'd like to use
command buttons and turn off the view of the groupings....An additional nice
feature of the button macro would be to unprotect/protect the sheet.

I appreciate any help you can offer in advance...

Respectfully,
Sam

  #4   Report Post  
Posted to microsoft.public.excel.programming
Ayo Ayo is offline
external usenet poster
 
Posts: 489
Default Command Button Macro to Expand/Collapse Grouped Columns

Try
Sub cmdBtn()
Range("B:J").Columns.ShowDetail = False
End Sub



"George" wrote:

Ayo Thank You for your response...My scenerio is a little different and if
you can give me a little more direction...The +/- is on Column "K" and
Columns "B -J" are part of the group...

Thanks Again.

"Ayo" wrote:

Sub cmdBtn()
Range("B:C").Columns.ShowDetail = False
End Sub

Try this: this is assuming column "A" has the +/- and column "B" and "C' are
part of that group.
"George" wrote:

Good Afternoon,
I'm not sure if this is possible but, what I'm trying to do is instead of
users seeing and using the +/- to expand column groups I'd like to use
command buttons and turn off the view of the groupings....An additional nice
feature of the button macro would be to unprotect/protect the sheet.

I appreciate any help you can offer in advance...

Respectfully,
Sam

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 347
Default Command Button Macro to Expand/Collapse Grouped Columns

Ayo,

I thought the same as you but I get an error message stating "Unable to set
ShowDetailproperty of the range class"...Any Idea's

Thanks

"Ayo" wrote:

Try
Sub cmdBtn()
Range("B:J").Columns.ShowDetail = False
End Sub



"George" wrote:

Ayo Thank You for your response...My scenerio is a little different and if
you can give me a little more direction...The +/- is on Column "K" and
Columns "B -J" are part of the group...

Thanks Again.

"Ayo" wrote:

Sub cmdBtn()
Range("B:C").Columns.ShowDetail = False
End Sub

Try this: this is assuming column "A" has the +/- and column "B" and "C' are
part of that group.
"George" wrote:

Good Afternoon,
I'm not sure if this is possible but, what I'm trying to do is instead of
users seeing and using the +/- to expand column groups I'd like to use
command buttons and turn off the view of the groupings....An additional nice
feature of the button macro would be to unprotect/protect the sheet.

I appreciate any help you can offer in advance...

Respectfully,
Sam



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
Expand/Collapse Grouped Data in Protected Worksheet Robert Slattery Excel Discussion (Misc queries) 8 November 24th 15 05:08 PM
expand and collapse button with subtotals TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 May 6th 06 01:18 PM
Expand and Collapse Columns JVICO New Users to Excel 1 April 21st 06 02:13 AM
Toggling Button Labels Between Expand/Collapse [email protected] Excel Programming 1 December 15th 05 05:39 PM
expand/collapse row button caii Excel Discussion (Misc queries) 3 October 26th 05 09:44 AM


All times are GMT +1. The time now is 02:45 PM.

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"