+ Reply to Thread
Results 1 to 3 of 3

How to disable a Form Control Burron once Clicked?

  1. #1
    Registered User
    Join Date
    06-11-2013
    Location
    Toronto
    MS-Off Ver
    2013
    Posts
    25

    Question How to disable a Form Control Burron once Clicked?

    I am wondering if I can disable a Form Control Button (Running a Macro), once a user clicks on the button. Here's the Macro:

    Sub Macro7()
    '
    ' Macro7 Macro
    '

    '
    Application.Goto Reference:="R80C8"
    Range("H80").Select
    ActiveCell.FormulaR1C1 = "=username()&TEXT(NOW(),""0000000000.00000"")*100000"
    Application.Goto Reference:="R80C8"
    Range("h80").Select
    Selection.Copy
    Application.Goto Reference:="R80C12"
    Range("l80").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
    Application.Goto Reference:="R80C8"
    Range("h80").Select
    Selection.ClearContents


    End Sub


    Thank you!

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: How to disable a Form Control Burron once Clicked?

    Try something like :-
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    06-11-2013
    Location
    Toronto
    MS-Off Ver
    2013
    Posts
    25

    Re: How to disable a Form Control Burron once Clicked?

    Thank you!

+ 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. How I do disable and enable web browser control in access form on button click
    By krjoshi in forum Access Programming / VBA / Macros
    Replies: 0
    Last Post: 10-10-2013, 02:58 PM
  2. [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
  3. [SOLVED] Macro To Open A Hidden Worksheet When Button (Form Control) Is Clicked
    By obwales in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-25-2012, 12:55 AM
  4. Enable/Disable Form controls on a worksheet (not Active X Control)
    By vaniravi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-29-2012, 07:42 AM
  5. Disable a Form Control
    By SonOfOdin in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-10-2012, 04:40 AM

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