Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default hide all comboboxes

Hi

i would like to hide all comboboxes on a particular sheet without knowing
all their names

is this possible?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default hide all comboboxes

Option Explicit
Sub testme()
Dim OLEObj As OLEObject
For Each OLEObj In ActiveSheet.OLEObjects
If TypeOf OLEObj.Object Is MSForms.ComboBox Then
OLEObj.Visible = False
End If
Next OLEObj
End Sub




sunilpatel wrote:

Hi

i would like to hide all comboboxes on a particular sheet without knowing
all their names

is this possible?

Thanks


--

Dave Peterson
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
ComboBoxes Bigjon Excel Programming 1 March 20th 09 07:38 AM
OLE comboboxes Mikkan Excel Programming 1 July 23rd 05 12:46 AM
comboboxes lgbjr Excel Programming 8 June 1st 05 06:52 AM
ComboBoxes Ryan Excel Programming 0 April 14th 04 10:56 PM
Comboboxes Angeliki Excel Programming 1 March 3rd 04 12:00 PM


All times are GMT +1. The time now is 02:42 PM.

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"