+ Reply to Thread
Results 1 to 4 of 4

Simple - Add another cell to itslef

  1. #1
    Registered User
    Join Date
    08-24-2006
    Posts
    2

    Simple - Add another cell to itslef

    I have a simple question that I cannot find an answer to (tried searching forums.) I would like to take a currecny value in one cell and add a currency value from another cell to itslef.

    Example:
    cell A1 = $5.00
    cell A2 = $3.00
    new value for cell A1 = $8.00

    Of course I realize that there is a potential of an infinite loop here but I was hoping that this formula would only run when cell A2 is changed. I am doing data entry to a chart of accounts and I am tired of switching to my calculator then back to excel.

    Would variables work better? I can't figure out how to use them
    I can't get the variable in the cell.

    Thanks.

  2. #2
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Place this code in the worksheet VBE object


    Please Login or Register  to view this content.
    ---------------------------------------------------
    ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
    To insert code into the VBE (Visual Basic Editor)
    1. Copy the code.
    2. Open workbook to paste code into.
    3. Right click any worksheet tab, select View Code
    4. VBE (Visual Basic Editor) opens to that sheets object
    5. You may change to another sheets object or the This Workbook object by double clicking it in the Project window
    6. In the blank space below the word "General" paste the copied code.

  3. #3
    Registered User
    Join Date
    08-24-2006
    Posts
    2

    Thanks

    Works like a charm
    I can't undo if I make a mistake but this will still save me a lot of time.

    Thank you very much!

  4. #4
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    If you make a mistake, say by putting in 3 when you meant to put in 6 you can input -3 then 6. Not really efficient but you can unravel it for one step at least.

    Quote Originally Posted by Allusion
    Works like a charm
    I can't undo if I make a mistake but this will still save me a lot of time.

    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