Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 130
Default Command Buttons and Auto-Filter

Hey All-

I was trying to alter a command button to auto-filter based on input from
the user in cell C1. (Which is actually a merged cell of four other cells)

The data range is A4:BJ3500 and this is what I'm using but it returns no
results even if I put in a number that I'm certain is in column "A" - field
1.

Any ideas greatly appreciated!

Private Sub CommandButton1_Click()
Range("A4:BJ3500").Select
Selection.AutoFilter Field:=1, Criteria1:="=*" & Range("C1").Value _
& "*"
End Sub


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
DataFilterAuto Filter in excel 2007? TIJ New Users to Excel 2 November 13th 08 03:28 AM
Changing the color of the data auto filter buttons Jane P Excel Worksheet Functions 1 September 11th 08 04:43 AM
auto filter use with command button deen Excel Worksheet Functions 9 April 22nd 08 10:55 PM
Excel auto filter doesn't recoginize case - won't filter AA from A Mikey Excel Discussion (Misc queries) 1 September 29th 05 08:18 PM
Control Buttons vs. Command Buttons Robert Gibson Excel Programming 1 October 13th 03 04:33 PM


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