+ Reply to Thread
Results 1 to 2 of 2

Append a formula to a cell's current value

  1. #1
    Registered User
    Join Date
    05-22-2007
    Posts
    5

    Append a formula to a cell's current value

    I am trying to code a macro that will, in essence, divide all values in a non-contiguous range by 1000. BUT, the key is not to overwrite the formula.

    Example: I have two ranges A1:C2 and T2:U:9 and all of the cells have a SUMIF() formula in them. Well, using a Combo Box with two choices (one for "in 000's" and one for "Original") I would like the user to be able to select "in 000's" and the macro APPEND "/1000" to the end of all of the formulas in the range. So that when the user then selects "Original" from the combo box it will take OFF the /1000 and the formula will stay in tact.

    Is this possible?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,696

    Re: Append a formula to a cell's current value

    You would use the following, where Range("A1") is a placeholder for whatever expression you use to identify the cell:
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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