+ Reply to Thread
Results 1 to 5 of 5

Macro to move data from one sheet to another

  1. #1
    Registered User
    Join Date
    08-25-2012
    Location
    LONDON
    MS-Off Ver
    Excel 2003
    Posts
    2

    Macro to move data from one sheet to another

    Hi, first time poster here so I hope I've explained the problem clearly.

    I need a macro that moves data from one sheet to another if certain conditions in the first sheet are met - a mock up is attached which hopefully shows what is needed.

    This has been driving me mad so any help would be really appreciated.

    Many thanks, Karen
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-23-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    163

    Re: Macro to move data from one sheet to another

    Please Login or Register  to view this content.
    Last edited by Cutter; 08-25-2012 at 09:50 AM. Reason: Added code tags

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Macro to move data from one sheet to another

    Hi, nested.if1 @ gmail.com

    please use Code-Tags for the readability of your code.

    And when deleting rows itīs very good to start at the bottom and work up (then thereīs no need to manipulate the counter. Instead of
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    BTW: as I handle both *.xls and *.xlsx/*.xlsm I changed from hard coding the last row with 65536 to using Rows.Count which will always deliver the proper number of rows in a worksheet. And I avoid hopping between worksheets - but thatīs of no great interest here (Iīd used Autofilter and copied the visible cells and then deleted them - just as an alternative approach)).

    Ciao,
    Holger
    Last edited by HaHoBe; 08-25-2012 at 07:24 AM.

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Macro to move data from one sheet to another

    hi KMD1, welcome to Excelforum, option, please check attachment
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    08-25-2012
    Location
    LONDON
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Macro to move data from one sheet to another

    Thank you all for your help, all replies solve my problem many thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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