Results 1 to 2 of 2

Sort, copy paste to new work sheet

Threaded View

  1. #1
    Registered User
    Join Date
    12-11-2008
    Location
    Kansas
    Posts
    19

    Sort, copy paste to new work sheet

    I am trying to open a workbook and sort a table based on a year it occured and then copy that table to another worksheet. Here is the code I started and I can seem to get it going. I know I've made a few mistakes so any help would be appreicated. Thanks
    Sub Get_Data()
    
    ' Copy Data from SOA
    
        Workbooks.Open Filename:="S:\Budget\SoaRpt\SOA.xlsm"
        Sheets("Data").Select
    End Sub
    
    ' Sort data
    Sub sort()
        Range("H1:H1550") = "10&1011"
        Range("A1:S1550").Select
        Selection.Copy
        Windows("General Funds.xls").Activate
        Sheets("Data").Select
        Range("A1").Select
        Sheets("Data").Paste
        Windows("SOA.xlsm").Activate
        ActiveWindow.Close
    End Sub
    It was a long day. All I need to do is add another autofilter from a previous macro.
    Last edited by zrupnick; 10-30-2009 at 09:50 PM. Reason: Solved

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