+ Reply to Thread
Results 1 to 4 of 4

Duplicate Cell contents from here to there, when another cell changes. Using VBA

  1. #1
    Registered User
    Join Date
    01-16-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    30

    Duplicate Cell contents from here to there, when another cell changes. Using VBA

    I need to figure out how to move a data from one row to another using VBA

    In attached spreadsheet, Cell D2 in yellow. If you type in the number 1, it triggers a vlookup in Cell E5 to bring in a definition (From Sheet2). I then want to use VBA to copy that definition immediately from E5 to E2. It needs to be copied over but I can't use E5=E2 as E2 will then be edited to specific circumstances for that particular job.

    I think its an intersect.target function. In my little sample, the Grade 1 and Grade 2 cells are part of named range "GRADES". There will be 10 of these Grades cells in actual workbook.

    So, I want a function that

    - if any cell in the named range "GRADES" changes, put the vlookup definition for that particular grade into the appropriate definition cell.



    I managed to do this when my data went down the columns rather than across the row, but I need to make it work across the row this time.
    Attached Files Attached Files

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,318

    Re: Duplicate Cell contents from here to there, when another cell changes. Using VBA

    Possibly...
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-16-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Duplicate Cell contents from here to there, when another cell changes. Using VBA

    That's close, it does work other than you've combined the vlookup into the VBA code.

    Each Grade has its own set of criteria. So Math would have its own definitions, English its own etc etc. So I'd have to specify that in the code somehow.

  4. #4
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,318

    Re: Duplicate Cell contents from here to there, when another cell changes. Using VBA

    Is this what you're looking for?
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. create duplicate rows for each cell contents
    By 12@ in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-25-2014, 02:59 PM
  2. Clear contents of cell if duplicate
    By johnph in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-23-2013, 08:48 AM
  3. Replies: 5
    Last Post: 08-10-2012, 04:32 PM
  4. Duplicate cell contents in another cell
    By dsouth in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-01-2010, 06:30 PM
  5. Help! How to duplicate (autofill) cell contents to other worksheets!
    By VelveteenLion in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-30-2008, 11:33 PM
  6. Replies: 4
    Last Post: 05-08-2008, 02:00 AM
  7. How to Auto duplicate cell contents?
    By mltong in forum Excel General
    Replies: 1
    Last Post: 12-30-2005, 07:00 AM

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