Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 177
Default How to ungroup a set of controls?

I'm trying to figure out how to ungroup a set of controls that reside on a
worksheet.

Basically I'm starting with an object reference to one of the controls
(e.g., a textbox) in the group. I thought I could do something like:

myTextbox.ShapeRange.Ungroup

but that just causes a runtime error (1004).

I've also tried:

myTextbox.Select
Selection.ShapeRange.Ungroup

and that seems to work sometimes but the results are a bit unpredictable.

Also is there a way to figure out if a control (e.g., myTextbox) is part of
a "user defined" group? It seems like some of Excel's control's (e.g., a
ComboBox) are built up from other more basic controls and then grouped. I
don't want my code to ever ungroup a ComboBox into its constituent objects.

TIA,

josh


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
How to UNGROUP worksheets, please? galkas Excel Worksheet Functions 4 December 28th 06 08:24 PM
Help with Group/Ungroup deacs Excel Discussion (Misc queries) 3 January 30th 06 04:29 PM
ActiveX Controls vs Form Controls Alex Excel Discussion (Misc queries) 1 January 11th 06 08:46 AM
Problems with ungroup Roger[_8_] Excel Programming 3 November 21st 03 04:43 AM
ungroup worksheets Township of East Hanover Excel Programming 2 August 14th 03 08:37 PM


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

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

About Us

"It's about Microsoft Excel"