+ Reply to Thread
Results 1 to 3 of 3

Macro (Button) to Change cell value

  1. #1
    Registered User
    Join Date
    04-23-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    37

    Macro (Button) to Change cell value

    I need a way to change the cell value with the value of another cell on certain sheets. On the attached workbook, there will be roughly 75 sheets like the one named Gerardo Rivera. In those sheets, I need the value of D49 to update with the value of F49 each week I run payroll.

    It would be nice to have a button I could click that would accomplish this just on the employee tabs, no the rest of the workbook.

    As always, thank you in advance for the help!


    2013 Payroll (3).xlsm

  2. #2
    Valued Forum Contributor AlvaroSiza's Avatar
    Join Date
    09-19-2007
    Location
    Staffordshire
    MS-Off Ver
    2007
    Posts
    591

    Re: Macro (Button) to Change cell value

    Please make a copy of your workbook and test on that copy. I wasn't entirely clear from your original post, but gave it a shot. Good luck.

    Please Login or Register  to view this content.
    Perhaps it was the Noid who should have avoided me...
    If you are satisfied with my solution click the small star icon on the left. Thanks
    1. Make a copy of your workbook and run the following code on your copy (just in case)
    2. With excel open, press ALT+F11 to open the Visual Basic Editor (VBE). From the "Insert" menu, select "Module".
    3. Paste the code from above into the empty white space. Close the VBE.
    4. From the developer tab, choose "Macros", select the Sub Name, and click "Run".

  3. #3
    Registered User
    Join Date
    04-23-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    37

    Re: Macro (Button) to Change cell value

    This works perfectly! Thank you very much...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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