+ Reply to Thread
Results 1 to 3 of 3

Add Approve Button

  1. #1
    Registered User
    Join Date
    07-24-2014
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    2

    Smile Add Approve Button

    Hi,

    I am very new to Macros, and really have no idea how to start this. I would like to add an "approval" button on my excel form. What I would like is once a manager reviews the form, they will click the "Approve" button, then their login and a date will be captured in a cell (C 18) and the form will be automatically emailed to me. I would also like to make sure cell C 18 is locked and will only auto populate when the "approve" button is pressed.

    Any code suggestions will be greatly appreciated.

    Thanks in advance.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Add Approve Button

    Hello donnac1107,

    Welcome to the Forum!

    My psychic 3-D printer network is down so I didn't receive a copy of your workbook. You will have to upload a copy the old fashion way.

    Please redact any sensitive or confidential information before you upload the workbook.

    How To Post Your Workbook
    1. At the bottom right of the Reply window, Click the button Go Advanced
    2. At the top of the Your Message Window, in the first row of icons, Click the Paperclip icon.
    3. Click the Add Files button at the top right in the dialog box. This displays the File Manager dialog.
    4. Click the Select Files button at the bottom middle of the dialog.
    5. In the new window Find the file you want to upload, select it, and Click Open.
    6. You will now be back in the File Manager dialog. Click the bottom Middle button Upload File.
    7. Wait until the file has completely uploaded before you exit the File Manager dialog.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    07-24-2014
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    2

    Smile Re: Add Approve Button

    Sorry about not uploading the files. Here is what I have so far:

    Private Sub CommandButton1_Click()
    With ActiveSheet
    .Unprotect
    .Cells(20, 5) = Now
    .Cells(20, 9) = Environ("USERNAME")
    .Protect
    End With
    End Sub

    I like what this does, however, I want to tweak it to make it do a few more things:

    1) I would like the cells to be clear until the button is clicked, right now data is populated in there
    2) I would like lock the cells (20, 5) and Cells (20, 9) so users cannot override the fields by typing in the cells
    3) if possible once the approve button is clicked, the sheet gets sent to an email automatically.

    I would be really appreciative if I can get some help on how to develop the above.

    Thank you.
    Attached Files Attached Files

+ 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. Create running stopwatch/timer with 1 button (start/stop). No reset button.
    By leeroy2612 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-26-2021, 12:59 AM
  2. Replies: 0
    Last Post: 06-10-2014, 10:44 PM
  3. [SOLVED] Match week and populate approve/reject text after each match row
    By lumiance in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2014, 08:00 AM
  4. Make cell auto lock after "approve"
    By elricsia in forum Excel General
    Replies: 1
    Last Post: 11-19-2013, 05:08 PM
  5. [SOLVED] Linking together an Options Button and a command button inorder to load separate forms
    By emilyloz in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2013, 02:10 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