Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem with range and autofilter



Private Sub CommandButton1_Click()

ActiveWorkbook.RefreshAll

With Worksheets("Findings")
.DisplayPageBreaks = False
Worksheets("EstFindings").Range("a1:b1").AutoFilte r _
Field:=2, _
Criteria1:="=0.01"
.DisplayPageBreaks = True
End With

End Sub


Excel 2002

This macro is running off of a button on Worksheet1. What I'm trying
to do is refresh my PivotTables*then* place an custom AutoFilter on
columns A and B of my worksheet named "findings" that sorts by items
greater than 0%.

When I run the macro, I get an error stating the Range selection method
failed.

Thoughts?


--
BigDave
------------------------------------------------------------------------
BigDave's Profile: http://www.excelforum.com/member.php...fo&userid=7741
View this thread: http://www.excelforum.com/showthread...hreadid=387751

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 268
Default Problem with range and autofilter

Hi

Instead of A1:B1, try A:B

"BigDave" wrote:



Private Sub CommandButton1_Click()

ActiveWorkbook.RefreshAll

With Worksheets("Findings")
.DisplayPageBreaks = False
Worksheets("EstFindings").Range("a1:b1").AutoFilte r _
Field:=2, _
Criteria1:="=0.01"
.DisplayPageBreaks = True
End With

End Sub


Excel 2002

This macro is running off of a button on Worksheet1. What I'm trying
to do is refresh my PivotTables*then* place an custom AutoFilter on
columns A and B of my worksheet named "findings" that sorts by items
greater than 0%.

When I run the macro, I get an error stating the Range selection method
failed.

Thoughts?


--
BigDave
------------------------------------------------------------------------
BigDave's Profile: http://www.excelforum.com/member.php...fo&userid=7741
View this thread: http://www.excelforum.com/showthread...hreadid=387751


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
Autofilter problem Lawman Excel Discussion (Misc queries) 4 February 28th 08 04:48 PM
PROBLEM WITH AUTOFILTER OMIDF New Users to Excel 1 August 18th 06 05:41 PM
What is Range For Chart AutoFilter Range VBA? [email protected] Excel Discussion (Misc queries) 0 April 19th 06 05:30 PM
autofilter problem emre Excel Worksheet Functions 0 March 29th 05 10:19 PM
Autofilter with Range problem kaon[_48_] Excel Programming 1 August 24th 04 11:37 AM


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

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

About Us

"It's about Microsoft Excel"