+ Reply to Thread
Results 1 to 2 of 2

Disable Form Button After Use

  1. #1
    Registered User
    Join Date
    12-12-2019
    Location
    Malta
    MS-Off Ver
    1910
    Posts
    1

    Disable Form Button After Use

    Hi

    I created a simple macro to enter the current time in a certain cell, however, after this button is clicked I would like to disable it so you can only enter the time once.

    I am quite new to this but this is what I got so far. The Macro is linked to a button which adds a timestamp in another sheet.

    Sub Button1()
    '
    ' Button1 Macro
    '
    ' Sheets("Sheet2").Select
    Range("C3").Select
    ActiveCell.Value = Now()
    Sheets("Sheet1").Select


    End Sub

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,303

    Re: Disable Form Button After Use

    Please Login or Register  to view this content.

+ 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. [SOLVED] Command button should be disable once user form is open
    By geliedee in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-18-2016, 01:38 PM
  2. Disable Command Button in User form
    By Lclarke11 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2015, 07:50 AM
  3. enable disable user form option button group
    By bsapaka in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-08-2014, 09:17 PM
  4. [SOLVED] Disable option button on user form??????
    By Bflare in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-27-2014, 04:42 PM
  5. [SOLVED]VBA - Button(Form Control)-Disable/Enable->Alternate Solution
    By mcmunoz in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-20-2013, 02:56 AM
  6. Disable Form button in excel worksheet
    By uvaidya in forum Excel General
    Replies: 0
    Last Post: 08-10-2012, 07:16 AM
  7. Disable a form button
    By doctormelodious in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-16-2007, 09:39 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