+ Reply to Thread
Results 1 to 5 of 5

Sending data from one sheet to another

  1. #1
    Registered User
    Join Date
    05-24-2012
    Location
    Phoenix, Arizona
    MS-Off Ver
    2010
    Posts
    17

    Sending data from one sheet to another

    Attached is a sample of what i need to accomplish. === Push.xlsx

    In sheet 'enter' I want to add $currency$ to the cells in column B and push the 'PUSH' button to send that information to the appropriate cooresponding cell on the 'Tally' sheet.

    I need this information to 'Tally' - to add. I have $15 in cell B4 in the 'Tally' sheet and if I add $5 to cell B4 in 'Enter' sheet and hit the 'PUSH' button, cell B4 in 'Tally' sheet should read $20. If there is nothing to add but zero(0), then the number in the cells on 'Tally' sheet should stay the same.

    Need some help! Let me know how to get the cells to add by using the 'PUSH' button.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Sending data from one sheet to another

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose View | Macros
    Select a macro in the list, and click the Run button.

    Insert a button on your file (Developer->Insert-> Choose the 1st from the form controls). Then right click and assign this macro to it.
    Last edited by arlu1201; 05-24-2012 at 08:21 AM.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    05-24-2012
    Location
    Phoenix, Arizona
    MS-Off Ver
    2010
    Posts
    17

    Re: Sending data from one sheet to another

    That worked perfectly. Thanks!
    What do I need to add to the VBA to get the cells in 'Enter' sheet to return to zero once the button is pushed?

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Sending data from one sheet to another

    I made the additions to the code above.

  5. #5
    Registered User
    Join Date
    05-24-2012
    Location
    Phoenix, Arizona
    MS-Off Ver
    2010
    Posts
    17

    Re: Sending data from one sheet to another

    Perfect! Thanks!

+ 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