PC Review


Reply
Thread Tools Rate Thread

Code Snippet - Forms from Control Box toolbar

 
 
Tim Childs
Guest
Posts: n/a
 
      21st Oct 2009
Hi

If someone has put radio buttons etc on a worksheet, what is the easiest way
to list these objects i.e. the object names for each object on the sheet

Thanks

Tim


 
Reply With Quote
 
 
 
 
Mike H
Guest
Posts: n/a
 
      21st Oct 2009
Hi,

Run this code and they will be listed in column A

Sub marine()
Dim OleObj As OLEObject
x = 1
For Each OleObj In ActiveSheet.OLEObjects
Cells(x, 1) = OleObj.Name
x = x + 1
Next OleObj
End Sub

Mike

"Tim Childs" wrote:

> Hi
>
> If someone has put radio buttons etc on a worksheet, what is the easiest way
> to list these objects i.e. the object names for each object on the sheet
>
> Thanks
>
> Tim
>
>
> .
>

 
Reply With Quote
 
Tim Childs
Guest
Posts: n/a
 
      21st Oct 2009
Hi Mike

Thanks for that - worked a treat.

Tim

"Mike H" <(E-Mail Removed)> wrote in message
news:917C4C78-7A4D-46C2-98D8-(E-Mail Removed)...
> Hi,
>
> Run this code and they will be listed in column A
>
> Sub marine()
> Dim OleObj As OLEObject
> x = 1
> For Each OleObj In ActiveSheet.OLEObjects
> Cells(x, 1) = OleObj.Name
> x = x + 1
> Next OleObj
> End Sub
>
> Mike
>
> "Tim Childs" wrote:
>
>> Hi
>>
>> If someone has put radio buttons etc on a worksheet, what is the easiest
>> way
>> to list these objects i.e. the object names for each object on the sheet
>>
>> Thanks
>>
>> Tim
>>
>>
>> .
>>



 
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
Re: Help-Intellisense (Code Snippet) Tab Tab does not insert code (VS2008) Jeff Johnson Microsoft C# .NET 0 12th Jul 2010 10:37 PM
Forms - using Forms Toolbar and Control toolbox in one document trainhappy Microsoft Word Document Management 1 12th Jun 2008 09:07 PM
Scroll bar from the Forms/Control toolbar Lynda Microsoft Excel Misc 0 13th May 2008 01:06 PM
Forms Toolbar - Scroll bar control =?Utf-8?B?dGlzaHl3aXNoeQ==?= Microsoft Excel Misc 1 8th Mar 2007 03:18 AM
forms toolbar vs. control toolbox anny Microsoft Excel Programming 1 9th May 2006 02:31 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:25 AM.