PC Review


Reply
Thread Tools Rate Thread

Command Button Macro to Expand/Collapse Grouped Columns

 
 
George
Guest
Posts: n/a
 
      25th Feb 2010
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 With Quote
 
 
 
 
Ayo
Guest
Posts: n/a
 
      25th Feb 2010
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 With Quote
 
George
Guest
Posts: n/a
 
      25th Feb 2010
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 With Quote
 
Ayo
Guest
Posts: n/a
 
      25th Feb 2010
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 With Quote
 
George
Guest
Posts: n/a
 
      25th Feb 2010
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Expand/Collapse Grouped Data in Protected Worksheet =?Utf-8?B?Um9iZXJ0IFNsYXR0ZXJ5?= Microsoft Excel Misc 6 13th May 2010 07:44 AM
Collapse grouped rows and columns on opening workbook Scott Microsoft Excel Misc 4 6th Aug 2008 10:40 PM
Expand and Collapse Columns =?Utf-8?B?SlZJQ08=?= Microsoft Excel New Users 1 21st Apr 2006 02:13 AM
expand/collapse row button =?Utf-8?B?Y2FpaQ==?= Microsoft Excel Misc 3 26th Oct 2005 09:44 AM
Expand/Collapse columns? Anna Microsoft Excel Worksheet Functions 1 4th Jul 2003 10:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:47 PM.