+ Reply to Thread
Results 1 to 6 of 6

VBA/Help with copying rows

  1. #1
    Registered User
    Join Date
    05-08-2019
    Location
    Czech Republic
    MS-Off Ver
    2016
    Posts
    86

    Angry VBA/Help with copying rows

    Hello everyone,
    Please Login or Register  to view this content.


    Now it obviously copy entireRow, but I need to copy three cells in a row, which are matched with 0001.
    Example: Macro finds match in B4, but I need to copy C4 to G4.

    Thanks
    Attached Files Attached Files
    Last edited by MartinV10; 07-11-2019 at 05:18 AM.

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

    Re: VBA/Help with copying rows

    Code Tags Added
    Your post does not comply with Rule 2 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



    (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

  3. #3
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: VBA/Help with copying rows

    @MartinV10, test my corrections.
    Please Login or Register  to view this content.
    Best Regards,
    Maras.

  4. #4
    Registered User
    Join Date
    05-08-2019
    Location
    Czech Republic
    MS-Off Ver
    2016
    Posts
    86

    Re: VBA/Help with copying rows

    Actually it did nothing….Don´t know why...

  5. #5
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: VBA/Help with copying rows

    Will you please attach a sample Excel workbook (10-20 rows of data is usually enough)?
    Best Regards,
    Maras.

  6. #6
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: VBA/Help with copying rows

    Possibly changing this line
    Please Login or Register  to view this content.
    to this...
    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. [SOLVED] Macro for copying rows in sheet1 to end of existing rows in sheet2 based on criteria
    By Karl Gustaf Karsten in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-22-2015, 04:19 AM
  2. copying column of numbers from rows to other rows
    By miles44 in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 05-11-2015, 10:30 PM
  3. Insert Rows And Fill Formulas Copying rows
    By Mj_McKenzie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-25-2012, 03:18 PM
  4. Macro to split a cell data into rows and copying other cells as it is in rows
    By shaan65 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-26-2010, 12:45 AM
  5. Macro to split a single cell data into rows and copying other cells as it is in rows
    By Pankaj Sonawane in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-25-2010, 07:09 PM
  6. copying rows to first empty rows in different workbook
    By jseufert in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2009, 04:48 PM
  7. Replies: 1
    Last Post: 06-18-2006, 11:40 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