+ Reply to Thread
Results 1 to 7 of 7

copy all highlighted rows to new sheet in order

  1. #1
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    copy all highlighted rows to new sheet in order

    hi
    ive been having bit of trouble copying only highlighted rows to sheet2,the rows are highlighted through vba using colour 39 and 43 on sheet1 using( macro1,)
    that all works , when it comes to copying these over ,(macro5) I can only do one colour or the other,what I would like to be able to do is copy all highlighted rows from sheet1 to sheet2 in order as they appear on sheet1,any ideas please
    cheers colin
    Attached Files Attached Files
    Last edited by cfinch100; 01-22-2014 at 01:44 PM.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: copy all highlighted rows to new sheet in order

    Use this line in macro5:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: copy all highlighted rows to new sheet in order

    hi mumps1
    thanks for that, works no problem ,I can not believe it I had done this earlier but would not work for me,could I trouble you one more time ,when I receive the sheet
    I manually put in order of date can something be put at the beginning of macro1 to do this
    cheers colin

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: copy all highlighted rows to new sheet in order

    Hi Colin. Try this macro. It will first sort your sheet according to the date and then copy the rows to Sheet2.
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: copy all highlighted rows to new sheet in order

    hi mumps1
    it does change date but does not select anything only the whole of sheet1, did you forget to put criteria in as in my macro, or am I missing something here,confused
    cheers colin

  6. #6
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: copy all highlighted rows to new sheet in order

    hi mumps1
    sorted it was what I thought have played about and works well many thanks
    cheers colin
    Attached Files Attached Files

  7. #7
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: copy all highlighted rows to new sheet in order

    My pleasure.

+ 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 Highlighted Rows to another sheet
    By MBCMDR in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-07-2016, 08:56 AM
  2. Replies: 0
    Last Post: 11-12-2013, 04:56 PM
  3. Copy a Row to another sheet of a cell in a column is highlighted
    By kdsanderson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2013, 11:52 AM
  4. Bring Highlighted Rows To The Top Of Sheet
    By JimmiOO in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-21-2011, 09:46 AM
  5. copy highlighted rows from Auto filter
    By tahirawan11 in forum Excel General
    Replies: 1
    Last Post: 06-19-2008, 12:00 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