Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Control Buttons to VBA

I have a document that has around 600 Option buttons placed by th
Control Toolbox. I need to find out if there is a way that i can mas
edit these in VBA. When I double click them in design mode it simpl
brings up a blank vba statement. I need to get at the actual functio
of these things, preferably in bulk...as I need to append a shee
specification to all the cell links. Any help would be appreciated...

Thanks as always,
Jason Sel

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Control Buttons to VBA

Jason,

here is how you can iterate through the buttons

Dim obj As Object

For Each obj In ActiveSheet.OLEObjects
If TypeName(obj.Object) = "OptionButton" Then
'do somethin
End If
Next obj

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"JasonSelf " wrote in message
...
I have a document that has around 600 Option buttons placed by the
Control Toolbox. I need to find out if there is a way that i can mass
edit these in VBA. When I double click them in design mode it simply
brings up a blank vba statement. I need to get at the actual function
of these things, preferably in bulk...as I need to append a sheet
specification to all the cell links. Any help would be appreciated...

Thanks as always,
Jason Self


---
Message posted from http://www.ExcelForum.com/



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
Control Buttons frozen Tendresse Excel Discussion (Misc queries) 2 January 23rd 09 10:03 AM
control buttons for chart Kyle Chastain Charts and Charting in Excel 1 January 23rd 09 02:34 AM
Keeping Control Buttons Still ZipCurs Excel Worksheet Functions 1 December 14th 05 10:41 PM
Control Box Option Buttons jlarkin Excel Programming 4 April 23rd 04 12:31 AM
Control Buttons vs. Command Buttons Robert Gibson Excel Programming 1 October 13th 03 04:33 PM


All times are GMT +1. The time now is 07:28 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"