+ Reply to Thread
Results 1 to 4 of 4

Macro help:Copy Value of cell on Sheet1, find value of the neighboring cell, paste wksht2

  1. #1
    Registered User
    Join Date
    04-01-2013
    Location
    bethesda
    MS-Off Ver
    Excel 2010
    Posts
    6

    Macro help:Copy Value of cell on Sheet1, find value of the neighboring cell, paste wksht2

    I could really use some help with a code to do the following:

    Workbook contains 2 worksheets: "table" "list"

    on worksheet "list" :
    column A= Name
    Column B = Start Date
    Column C = City
    Column D = State
    Column E = Status
    Column F = Event

    On worksheet "table":
    column A= Name
    Column B = Start Date
    Column C = City
    Column D = State
    Column E = Cost
    Column F = Status

    I need code to look in worksheet "list" column F,
    If cell contains "Changed" then copy value of cell in column E (right next to it)
    Then find the cell in worksheet "table" column A that matches worksheet "list" column A and
    past value from column E from worksheet "list" in column F of worksheet "table"

    i dont want formulas in the cell, so i want vba to do it instead of formulas.

    Macro.jpg


    Any help or suggestions would be GREATLY appreciated!! thanks

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Macro help:Copy Value of cell on Sheet1, find value of the neighboring cell, paste wks

    Would you mind attaching your workbook so we have the right base to work on?
    Thanks
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Registered User
    Join Date
    04-01-2013
    Location
    bethesda
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Macro help:Copy Value of cell on Sheet1, find value of the neighboring cell, paste wks

    Sure, thanks for taking a crack at it!
    Attached Files Attached Files

  4. #4
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Macro help:Copy Value of cell on Sheet1, find value of the neighboring cell, paste wks

    See attached workbook. I created a named range "Data" which is your whole table in sheet "table". This range expands as you add more data to this table. It is dynamic and very helpful.
    Here is the macro:
    Please Login or Register  to view this content.
    One thing to be aware of is that if you happen to have, like in your actual table, 2 identical input (John in NYC appears on 2 rows), both status will be changed.
    I don't know if this is supposed to happen at all.
    Hope this helps
    Attached Files Attached Files

+ 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. [SOLVED] Copy cell from sheet2 and paste it back on same row of sheet1.
    By shiva_reshs in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-13-2013, 12:32 PM
  2. [SOLVED] copy paste value from sheet1 to sheet2 in empty cell only
    By koi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2013, 03:46 AM
  3. vba autofilter, copy, paste to another workbook(sheet1), hide the cell
    By lax2734 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-20-2012, 05:54 PM
  4. [SOLVED] Need a macro to Copy Cell in Sheet1 to the next empty cell in Column A, Sheet2
    By killerthun in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-16-2012, 01:21 PM
  5. Macro to Search Cell on Sheet1, find on Sheet3, paste other data
    By Lennie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2011, 01:11 PM

Tags for this Thread

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