+ Reply to Thread
Results 1 to 4 of 4

Copy & Paste Sorted Rows

  1. #1
    Registered User
    Join Date
    09-06-2008
    Location
    IL
    Posts
    2

    Copy & Paste Sorted Rows

    I have a workbook with multiple spreadsheets. The first sheet is where I have the data and the other sheets are reports.

    With the first three rows as headers I use Autofilter on line three and sort the data as desired using macros. Then I copy the remaining rows and paste them to another spreadsheet and hide the columns not wanted.

    The macro finds the next available row in the report and inserts a heading i.e. Sales – then return to the data and resort as desired – copy and return to the report – find the next line and insert another heading i.e. Open Proposals, find the net open row and paste the data.

    My questions are:

    1 I need to sort the data looking for a specific date range - what is the code to prompt the operator for the a date range for a specific column?
    2 Once the sort has been completed what is the code to select and copy the remaining rows after row 3 so they can be pasted into the report spreadsheet?
    3 What is the code to find the next available row to paste the data into the report sheet?

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: Copy & Paste Sorted Rows

    Post us what you have so far and we can continue. For the MsgBox use something like:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-06-2008
    Location
    IL
    Posts
    2
    Please Login or Register  to view this content.
    Last edited by VBA Noob; 09-08-2008 at 05:46 PM.

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    tjonesexcel,

    Welcome to the forum. Please read the forum rules below before posting again. I've wrapped your code for you this time

    Many thanks

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ 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. macro for excel and powerpoint
    By mariusescu in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-10-2008, 04:32 PM
  2. How to copy the first 30 rows of a sorted list?
    By StuntMonkeh in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-10-2008, 03:17 PM
  3. Copy & paste from cells below named ranges
    By Glio in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-19-2007, 08:15 AM
  4. copy and paste problem
    By tweacle in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2007, 01:07 PM
  5. Macro to copy and paste information from other applications to Excel
    By mvatoi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-01-2007, 03:20 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