+ Reply to Thread
Results 1 to 4 of 4

Hiding ActiveX controls

  1. #1
    Registered User
    Join Date
    02-05-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    365
    Posts
    87

    Hiding ActiveX controls

    I want to hide 2 ActiveX buttons, if the cell before them is empty... Buttons are TEST13 and HOUSE13, and the cell to be blank is B16.

    I guess I may not even need VBA for this, but i'm not sure how to do this with any method. Also note : I don't want to hide the row, just the buttons.

    Thanks folks...
    Last edited by Darth269; 02-23-2012 at 07:41 AM.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,485

    Re: Hiding ActiveX controls

    right click sheet table and add code.
    Change sheet code name to make your workbook

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Hiding ActiveX controls

    Try this, change the cell references & button names.
    Please Login or Register  to view this content.
    Worksheet event code is stored on a worksheet module. To add it to your worksheet, do the following:

    Copy the code
    Select the worksheet in which you the code to run
    Right click on the sheet tab and choose View Code, to open the Visual Basic Editor.
    Where the cursor is flashing, choose Edit | Paste

    TDQ Andy!!!!!
    Last edited by royUK; 02-18-2012 at 01:09 PM.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    02-05-2012
    Location
    Milton Keynes, England
    MS-Off Ver
    365
    Posts
    87

    Re: Hiding ActiveX controls

    Sorry for the late reply...But that worked thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1