Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2007

Tip: Looking for answers? Try searching our database.

Hiding Combo Boxes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
charlie1234 - 18 Nov 2007 18:54 GMT
Is it possible for me to create a macro so that when I click a button, a
combo box is hidden?

I'm using Excel 2007 and Vista Home Premium if that helps

Thanks
Dave Peterson - 18 Nov 2007 19:21 GMT
It'll depend on what kind of button and what kind of combobox.

It could be as simple as:

Option Explicit
Private Sub CommandButton1_Click()
   With Me.ComboBox1
       .Visible = Not .Visible
   End With
End Sub

This actually toggles the visibility.

If you just want to hide it, use this line:

      .Visible = false

> Is it possible for me to create a macro so that when I click a button, a
> combo box is hidden?
>
> I'm using Excel 2007 and Vista Home Premium if that helps
>
> Thanks

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.