+ Reply to Thread
Results 1 to 5 of 5

Help with VBA Code - Find cells with specific value, Copy/Paste value from adjacent colmns

  1. #1
    Registered User
    Join Date
    01-08-2015
    Location
    Fife, Scotland
    MS-Off Ver
    2010
    Posts
    9

    Help with VBA Code - Find cells with specific value, Copy/Paste value from adjacent colmns

    Hi

    I'm new to the forum and hoping you can help me. I have some experience with VBA but don't use this often.

    I'm looking for code that will find every entry in my column (column C in my spreadsheet) that has a specific text string and then take the value from the same row in column E and copy this in to column D.

    I have code to find the value but my copy paste only works on the changes my column header. Any help would be appreciated

    Thanks

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    Re: Help with VBA Code - Find cells with specific value, Copy/Paste value from adjacent co

    Attaching a sample workbook enables others to work on your problem:

    To attach a sample workbook. Make sure there is just enough data to make it clear what is needed. Include BEFORE/AFTER sheets if needed to show the process you're trying to complete or automate. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  3. #3
    Registered User
    Join Date
    01-08-2015
    Location
    Fife, Scotland
    MS-Off Ver
    2010
    Posts
    9

    Re: Help with VBA Code - Find cells with specific value, Copy/Paste value from adjacent co

    Apologies example spreadsheet now attached.

    I have made the information generic in the spreadsheet and included the macro I have written so far.

    In this exmaple I am looking to find all entries of 'Transcation 3' and replace the 0 found in column D with the value shown in column E. Once complete I have a macro which will delete all rows with 0 values in column D as I don't want these in my final output.

    Thanks for your help
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Help with VBA Code - Find cells with specific value, Copy/Paste value from adjacent co

    Does this help?

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-08-2015
    Location
    Fife, Scotland
    MS-Off Ver
    2010
    Posts
    9

    Re: Help with VBA Code - Find cells with specific value, Copy/Paste value from adjacent co

    Yes perfect, I was also able to use for multiple variables which I was hoping. Thanks for you help with this

+ 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] Macro to find specific word in cell and then copy and paste the adjacent cell upwards
    By raytej82 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-04-2014, 05:33 PM
  2. [SOLVED] VBA macro to find specific cells, copy the content and paste to ranges
    By tauterouff in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-28-2014, 09:14 AM
  3. Replies: 7
    Last Post: 12-04-2012, 06:23 AM
  4. [SOLVED] Find all cells with a specific background color then copy/paste to correct column
    By d_rose in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-20-2012, 10:18 AM
  5. [SOLVED] find value, copy value of adjacent cell and paste it on another sheet
    By Ajgor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-25-2012, 04:21 PM

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