Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Ignore Blank Cells on AutoFilter

Hi Guys;

Dim aws as WorkSheet
Dim FrstCol as String
Dim ScndCol as String
Dim ThrdCol as String
Dim FrthCol as String
Dim Course as String

Set aws as ActiveSheet

Course = InputBox("Enter The Column Number For The Subject You Teach")

' Calculations to Return Columns

' The Calculations return the Columns for the Students, these Four
' Columns have worked great until I ran into Blank Cells in a Column.

I changed the code to:

With aws
.Columns(Course).AutoFilter Field:=1, Criteria1:="European Literature"
.Columns(FrstCol).AutoFilter Field:=1, Criteria1:"" Error
= Expected Name Parameter or Syntax Error
.Columns(ScndCol).AutoFilter Field:=1, Criteria1:"" Error =
Expected Name Parameter or Syntax Error
.Columns(ThrdCol).AutoFilter Field:=1, Criteria1:"" Error =
Expected Name Parameter or Syntax Error
.Columns(FrthCol).AutoFilter Field:=1, Criteria1:"" Error =
Expected Name Parameter or Syntax Error
End With

Question: How can I do an AutoFilter on Cells within a Column that have Data
(Data will always be Letters from A to Z and will never be greater than four
characters per column. There will always be a minimun of 1 character.

Thanks in Advance

Granny

Reply
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
Ignore Blank or 0 cells Dave Excel Worksheet Functions 4 August 20th 08 12:06 AM
Ignore Blank Cells Benz Excel Programming 3 September 25th 06 08:37 PM
ignore blank cells Leticia Excel Discussion (Misc queries) 3 February 27th 06 05:41 PM
How to ignore blank cells MattBeckwith Charts and Charting in Excel 10 February 19th 06 11:16 PM
how do you ignore blank cells Kerry Excel Discussion (Misc queries) 1 February 16th 05 01:55 PM


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