Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Macro to Autofilter

Hi,

I have a spreadsheet that has number of coloums
A = Name
B = Address
C = Process

I have a userform that has Macros's on it. I am trying to
create a macro that is called 'Glenn' and when pushed it
will take the user to that spreadsheet (Sheet2) and
autofilter coloumn A and display cells that equal Glenn.

Many Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Macro to Autofilter

Glenn,

You could have gotten this with the macro recorder. My solution hardly seems
worth a macro <VBG

Sub Glenn()
Worksheets("Sheet2").Columns("A:A").AutoFilter Field:=1,
Criteria1:="Glenn"
End Sub

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Glenn" wrote in message
...
Hi,

I have a spreadsheet that has number of coloums
A = Name
B = Address
C = Process

I have a userform that has Macros's on it. I am trying to
create a macro that is called 'Glenn' and when pushed it
will take the user to that spreadsheet (Sheet2) and
autofilter coloumn A and display cells that equal Glenn.

Many Thanks



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
Macro, AutoFilter... Aline Excel Discussion (Misc queries) 1 July 27th 08 12:27 AM
Autofilter from macro Brettjg Excel Discussion (Misc queries) 2 June 8th 07 01:45 PM
autofilter macro flow23 Excel Discussion (Misc queries) 1 April 18th 06 03:00 PM
Keep autofilter after macro is run gmr7 Excel Worksheet Functions 2 July 5th 05 01:16 PM
Autofilter Macro Help RonB Excel Discussion (Misc queries) 1 December 30th 04 01:34 AM


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