LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default checkbox hell

the reason is the procedure only applys to active sheet
so u may make a loop to walk through

Private Sub CommandButton1_Click()
Dim myObj As OLEObject
For Each myObj In ActiveWorkbook.ActiveSheet.OLEObjects
Debug.Print myObj.Name
If Len(myObj.Name) 8 Then
If Left(myObj.Name, 8) = "CheckBox" Then
myObj.Left = 50
End if
End If
Next
End Sub


 
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
Pls tell me how in hell am I to ask a technical question in 4 wor Kleberman New Users to Excel 1 April 7th 06 12:22 PM
Hyperlink hell komatik Excel Discussion (Misc queries) 2 September 6th 05 03:23 PM
checkbox hell eRiC Excel Programming 0 July 16th 04 04:40 AM
ComboBox Hell!!! Dave Baranas Excel Programming 4 August 15th 03 06:42 PM
Excel ADO.Net Hell :S Kevin Harrison Excel Programming 4 August 14th 03 11:09 AM


All times are GMT +1. The time now is 08:40 AM.

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"