+ Reply to Thread
Results 1 to 3 of 3

Button needs to be Invisible or Disabled after it has been clicked once

  1. #1
    Registered User
    Join Date
    03-19-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Button needs to be Invisible or Disabled after it has been clicked once

    Hello all,

    I have a button set up here which I need to ensure that it cannot be clicked again after the first time (because I do not want the time stamp to be changed)

    Here is the error-free code I have:


    Please Login or Register  to view this content.

    The problem here is that the last line which says .controlformat.enabled = false does not disable the button. Like I can still click on the button and update the time stamp.

    What is the line of code I need to make sure that the button is either disabled or invisible?

    Thank you!

  2. #2
    Registered User
    Join Date
    03-19-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Button needs to be Invisible or Disabled after it has been clicked once

    okay nvm, I got it, so for visibility it's without the .controlformat within the line of code. Why is this the case?

  3. #3
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Button needs to be Invisible or Disabled after it has been clicked once

    How about:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. why a file is always invisible when first clicked
    By seraphin in forum Excel General
    Replies: 2
    Last Post: 02-25-2019, 12:56 AM
  2. Make button invisible on click of another button
    By forrestgump1980 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2017, 10:18 AM
  3. 'Invisible' Command Button
    By DavG63 in forum Word Programming / VBA / Macros
    Replies: 5
    Last Post: 12-03-2014, 11:35 AM
  4. [SOLVED] Disabled X button but wish to create 'Exit' button
    By danlRB80 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-16-2014, 02:43 PM
  5. [SOLVED] Make button invisible??
    By ohaganli in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2012, 09:41 AM
  6. Modifying a Macro Button to time stamp when the button was clicked.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-22-2010, 04:46 PM
  7. Button Text Gets Smaller When Button Clicked On
    By googlebot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2009, 02:37 PM

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