Results 1 to 11 of 11

Macro which will filter and paste data to new worksheet

Threaded View

pauldaddyadams Macro which will filter and... 03-18-2014, 04:21 AM
Fotis1991 Re: Macro which will filter... 03-18-2014, 04:36 AM
pauldaddyadams Re: Macro which will filter... 03-18-2014, 04:51 AM
Fotis1991 Re: Macro which will filter... 03-18-2014, 04:56 AM
pauldaddyadams Re: Macro which will filter... 03-18-2014, 05:08 AM
Fotis1991 Re: Macro which will filter... 03-18-2014, 05:33 AM
pauldaddyadams Re: Macro which will filter... 03-18-2014, 05:58 AM
Fotis1991 Re: Macro which will filter... 03-18-2014, 06:18 AM
ragulduy Re: Macro which will filter... 03-18-2014, 06:27 AM
Izandol Re: Macro which will filter... 03-18-2014, 06:30 AM
pauldaddyadams Re: Macro which will filter... 03-18-2014, 09:29 AM
  1. #9
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Macro which will filter and paste data to new worksheet

    Try:
    Sub macro_1()
    Dim count, ws1
    Application.ScreenUpdating = False
    Set ws1 = Activesheet
    For count = 2 To ws1.Range("A" & Rows.count).End(xlUp).Row
        On Error GoTo not_found
            ws1.Rows(count).Copy Sheets("" & ws1.Range("A" & count)).Range("A" & Rows.count).End(xlUp).Offset(1, 0)
        On Error GoTo 0
    Next count
    ThisWorkbook.SaveAs "P:\Test\Finance\manacc\MAN_ACC\Test2\2014\Mth0214\Transactional Reports\Hygiene\" & ws1.name & ".xls"
    Application.ScreenUpdating = True
    Exit Sub
    not_found:
    Sheets.Add
    ActiveSheet.Name = ws1.Range("A" & count)
    Resume
    End Sub
    Last edited by ragulduy; 03-18-2014 at 06:30 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Need help with a macro to filter data and paste it in the corresponding worksheet
    By odoualex in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-17-2013, 02:35 PM
  2. Macro to Copy/Paste Cells if Data is found with Filter
    By CMPidgeon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-16-2012, 04:05 PM
  3. [SOLVED] Macro to Filter Data and Paste in new Workbooks
    By willy91785 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-19-2010, 11:14 AM
  4. how to filter and copy data from one sheet and paste to new worksheet
    By mr_asrul in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-03-2008, 07:15 AM
  5. Replies: 5
    Last Post: 03-18-2006, 08:45 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