+ Reply to Thread
Results 1 to 3 of 3

Make button invisible??

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    Guelph, Canada
    MS-Off Ver
    Excel 2003
    Posts
    26

    Make button invisible??

    Okay this is going to make me sound incredibly stupid. Im having trouble making a button disappear
    I have code that rotates a few picture boxes based on a number (its for a dashboard graph) and i want the button to disappear after i press it. I used "Button1.Visible= false" but it just gives me the error "Object Required". ??

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Make button invisible??

    You need to declare what sheet or userform it is on ie:
    sheet1.Button1.Visible = false
    or userform1.button1.visible = false

  3. #3
    Registered User
    Join Date
    10-16-2012
    Location
    Guelph, Canada
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Make button invisible??

    Ahhhhh well im stupid :3 lmao thank you Sean

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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