+ Reply to Thread
Results 1 to 3 of 3

Copy values of cell into another cell using algebra to define the destiation cell

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    Thetford, England
    MS-Off Ver
    Excel 2003
    Posts
    21

    Copy values of cell into another cell using algebra to define the destiation cell

    Hi everyone

    I am making a quoting document and I need to create a macro to run from a button which will "save" values from an "item selection form" worksheet into a "quote summary" sheet. I can write a code which will do this to a set location but my problem is that the location where the values need to be saved will change depending on the value in cell "C16", which signifies the item number. The save location needs to be Column: A, Row: (C16+3) in order to cater for a large number of parts to show up on the "quote summary". If someone could just explain how to code the reference to the cell I think I could work the rest out from there, it would be a massive help.

    Thanks,
    Glen
    Last edited by Glensafro; 02-15-2012 at 07:06 AM.

  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,259

    Re: Copy values of cell into another cell using algebra to define the destiation cell

    Hello Glen,

    To move around the worksheet by adding or subtracting values to or from a cell, you can either use the Cells property. The Cells property takes the row number and column number or letter.

    Set the Destination Cell to A19 using C16 + 3
    Please Login or Register  to view this content.
    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
    01-09-2012
    Location
    Thetford, England
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Copy values of cell into another cell using algebra to define the destiation cell

    That's perfect, thanks Leith!

+ 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