+ Reply to Thread
Results 1 to 2 of 2

Copy and Paste based on a cell value

  1. #1
    Registered User
    Join Date
    01-10-2011
    Location
    Zimbabwe
    MS-Off Ver
    Excel 2007
    Posts
    2

    Copy and Paste based on a cell value

    I have a spreadsheet with two tabs Line Crew and Master Log. I have a macro that searches the Master Log Column H for a value "Line Crew" and if it finds it, it will copy that row (Specified range) to the Line Crew tab. My problem with the macro is that it keeps copying the same row. I would like it to move down to the next row search for "Line Crew" , copy and paste until it gets to the end of Master Log Sheet. I have attached a sample of the spreadsheet. Here is my code:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by alansidman; 07-17-2014 at 09:59 PM. Reason: code tags added

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Copy and Paste based on a cell value

    Code Tags Added
    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (Because you are new to the forum, I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Copy-Paste based on cell value
    By Konexcelmath in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2013, 03:32 AM
  2. [SOLVED] Copy/Paste Based on Value of Cell
    By l8tnite in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-25-2012, 06:17 PM
  3. Copy Paste based on Cell Value
    By Bwbisel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2011, 09:06 AM
  4. Copy and paste row based on cell value
    By contra76 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-20-2010, 03:23 AM
  5. Perform copy and paste based on cell value's
    By KevinThomas in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-19-2010, 01:12 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