Results 1 to 3 of 3

Macro Not Working On Filtered Data

Threaded View

  1. #1
    Forum Contributor HaroonSid's Avatar
    Join Date
    02-28-2014
    Location
    india
    MS-Off Ver
    Excel 2013
    Posts
    2,081

    Macro Not Working On Filtered Data

    hi,
    this code is not working on filtered data, otherwise working very well,
    plz help

    Sub EXCEL_TO_TALLY_EXCEL_FILE_XXXX() '''''''''''''''''''''''''''ADIL TO EXCEL TF FILE
    With Application
            .EnableEvents = False
            .Calculation = xlCalculationManual
            .ScreenUpdating = False
    End With
    
    Dim x11, x12, x13, x14, x15, x16, x17
        With Sheets("NEFT-MT-APR-24-25").[D1:N500]
                x11 = .Columns(1).SpecialCells(12) 'NARRATION
                x12 = .Columns(2).SpecialCells(12) 'AMOUNT
                x13 = .Columns(7).SpecialCells(12) 'REF NUMBER
                x14 = .Columns(9).SpecialCells(12) 'DATE
                x15 = .Columns(10).SpecialCells(12) 'NAME
                x16 = .Columns(11).SpecialCells(12) 'SHEET NUMBER
            End With
            Windows("X Vouchers - Purchase Transactions With StockItems PAYMENT.xlsm").Activate
            With ActiveWorkbook.Sheets("PAYMENT DETAIL")
                .Cells(.Rows.Count, 5).End(xlUp).Offset(1).Resize(UBound(x11, 1)) = x11
                .Cells(.Rows.Count, 4).End(xlUp).Offset(1).Resize(UBound(x12, 1)) = x12
                .Cells(.Rows.Count, 11).End(xlUp).Offset(1).Resize(UBound(x13, 1)) = x13
                .Cells(.Rows.Count, 2).End(xlUp).Offset(1).Resize(UBound(x14, 1)) = x14
                .Cells(.Rows.Count, 3).End(xlUp).Offset(1).Resize(UBound(x15, 1)) = x15
                .Cells(.Rows.Count, 6).End(xlUp).Offset(1).Resize(UBound(x16, 1)) = x16
                
                
    End With
    With Application
            .EnableEvents = True
            .Calculation = xlCalculationAutomatic
            .ScreenUpdating = True
    End With
    End Sub
    Attached Files Attached Files
    Use Code-Tags for showing your code :
    Please mark your question Solved if there has been offered a solution that works fine for you
    If You like solutions provided by anyone, feel free to add reputation using STAR *

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Working With Filtered Data
    By Jenn68 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-08-2022, 10:35 AM
  2. Macro that can filter excel data and copy the filtered data to another worksheet
    By glide2131 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-10-2013, 02:43 PM
  3. [SOLVED] Macro for delete filtered data
    By VKR in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-09-2013, 07:45 AM
  4. [SOLVED] Copying Filtered Data From 2 Sheets of One Workbook to Another Isn't Working Correctly
    By ScotyB in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-13-2012, 06:30 PM
  5. Replies: 4
    Last Post: 09-04-2012, 06:09 AM
  6. [SOLVED] Macro With Filtered Data
    By danderson2692 in forum Excel General
    Replies: 2
    Last Post: 06-14-2012, 09:46 AM
  7. Need a macro to filter data then email filtered data through lotus notes (or print)
    By Crimson Bourne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-17-2012, 01:26 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