+ Reply to Thread
Results 1 to 6 of 6

VBA - Match Cell Value and Paste Specific Cells

  1. #1
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    VBA - Match Cell Value and Paste Specific Cells

    Hi All,

    I am new enough to VBA,

    I have a bit of working code that looks at 2 cell values on sheet 1, and matches them on sheet 2, then copies cell values from sheet 1 and pastes them to that location in sheet 2

    Please Login or Register  to view this content.
    I want this code to run through the first 100 lines performing the same task for each line, while I could copy and paste this code replacing the necessary cells, this sounds messy and slow.

    If anybody knows any tips or tricks to do this faster and simpler, that would be great

    Thanks in advance for any replies

    Simon

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: VBA - Match Cell Value and Paste Specific Cells

    Try this untested code

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: VBA - Match Cell Value and Paste Specific Cells

    Hi, Thanks for you reply, unfortunately that code doesn't seem to do the trick. It runs without error but I cannot see any changes the code has done

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: VBA - Match Cell Value and Paste Specific Cells

    Run it in break more by pressing F8 which runs the code line by line and see what it's doing and where it fails

  5. #5
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: VBA - Match Cell Value and Paste Specific Cells

    Hi sorry about the delay in the reply, Im not too sure how the break thing works, Im hitting F8 but it just cycles through every line highligthing each one yellow

  6. #6
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    Re: VBA - Match Cell Value and Paste Specific Cells

    Ok so after much messing around I have ended up with a final working code, I will post it here for anybody have a similar issue

    Please Login or Register  to view this content.
    Thanks for the replies

+ 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. Replies: 3
    Last Post: 09-20-2013, 04:24 PM
  2. [SOLVED] Match Cells across 2 Work sheets then copy/paste a cell
    By tripey in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-13-2013, 11:45 PM
  3. [SOLVED] Cut specific text from cells and paste in neighbour cell
    By andrewzzz in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-10-2013, 02:08 AM
  4. Returning the contents of a specific cell using a MATCH of 2 other cells
    By oneblondebrow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-08-2013, 08:41 AM
  5. [SOLVED] Copy and Paste cells that match another cell
    By nenadmail in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-08-2012, 08:53 AM

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