LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Autofilter for fixed columns

Hi,
I have a big table from column A to BP, though the number of column is not
fixed. Sometimes it has additonal one or 2 extra columns append at the back,
so it could reach until column BR.

Regardless of how many columns I have in this table, I want to have a macro
that could turn on autofilter, filter column J for a value e.g. "John, C",
and then filter column AC and R for non-blank cells.

I tried the following, but it doesn't work.

..Columns("J:J").AutoFilter field:=1, Criteria1:="John, C"
..Columns("AC:AC").AutoFilter field:=1, Criteria1:="<"
..Columns("R:R").AutoFilter field:=1, Criteria1:="<"

Can anyone help?

choo
 
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
Fixed 26 million rows, now 16,000 columns- help help! The BusyHighLighter[_2_] Excel Discussion (Misc queries) 2 August 1st 07 04:14 AM
formula to stay fixed on two columns as you add more columns usingexcel Excel Discussion (Misc queries) 1 August 3rd 06 01:25 AM
fixed columns mit76 Excel Worksheet Functions 1 March 21st 06 09:15 PM
Fixed Columns Mpho[_2_] Excel Programming 2 January 8th 04 12:46 PM
Printing fixed columns and rows rcorona106 Excel Programming 4 December 19th 03 12:03 AM


All times are GMT +1. The time now is 10:40 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"