LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Advanced autofilter not working in macro

I am using the follwoing code to filter data greater than certain date. But
unfortunately all data gets hide when I run the macro. However when I open
and close the autofilet after Macro has run, proper values are visible.
please help me out...

Date = Cells(erow - 49, 4)
Sheets("data").Select
Range("a6").Select
Selection.AutoFilter
Range("O6").Select
Selection.AutoFilter Field:=15, Criteria1:="=" & Date
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro with custom autofilter for greater and less than specific da Peter-Jon Excel Discussion (Misc queries) 1 December 1st 06 02:40 AM
error when running cut & paste macro Otto Moehrbach Excel Worksheet Functions 4 August 9th 06 01:49 PM
Advanced Filter not working babypenquin Excel Worksheet Functions 1 June 22nd 06 05:48 PM
Keyboard shortcut not working when I copy macro to another computer telewats New Users to Excel 1 January 9th 06 08:52 PM
Macro Help In Excel welshlad Excel Discussion (Misc queries) 14 October 26th 05 02:34 PM


All times are GMT +1. The time now is 10:14 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"