Results 1 to 6 of 6

‘How to hide command button based on another cell - Additional buttons?’

Threaded View

  1. #1
    Registered User
    Join Date
    12-11-2013
    Location
    Melbourne AUSTRALIA
    MS-Off Ver
    Excel 2013
    Posts
    16

    ‘How to hide command button based on another cell - Additional buttons?’

    I came across an old thread by martindwilson (full credit to him) ‘How to hide command button based on another cell?’ (http://www.excelforum.com/excel-prog...ml#post3561021).

    This works faultlessly but for only 1 Button. I tried adding in the code again for a second Button but it creates a conflict. I made a slight adjustment to your original code, to show the button when the cell is populated, which works well…

    Private Sub Worksheet_SelectionChange(ByVal Target As Excel.Range)
          If Range("C27") = "" Then
          SpinButton1.Visible = False
          Else
          SpinButton1.Visible = True
          End If
          End Sub
    Does anyone know a way I can:-

    1. Add additional buttons which reference their own cell?

    CommandButton4 – H9
    CommandButton6 – I9
    CommandButton2 – Q9
    CommandButton3 – S9

    2. And add one button which activates based on one of 3 cells?

    CommandButton1 – J9 &/or V9

    Any assistance would be greatly appreciated as I am a VBA novice.

    http://www.ozgrid.com/forum/showthread.php?t=185711
    Last edited by tittbb; 01-28-2014 at 07:11 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to hide command button based on another cell?
    By proepert in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-27-2014, 09:28 AM
  2. Hide/Unhide Command Button based on multiple cell values
    By dagindi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-05-2011, 09:03 PM
  3. [SOLVED] Hide/Show Command button based on cell value
    By paxile2k in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-13-2010, 08:59 AM
  4. Hide display command button based on conditions
    By mrdata in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-30-2007, 11:16 AM
  5. How do I hide a command button based on a condition?
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-03-2006, 09:50 AM

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