How do I Filter a column using a VBA script/commandbutton

Status
Not open for further replies.

Franklienovice

New Member
Joined
Jul 16, 2011
Messages
2
I am using Windows XP with Excel 2007, I am a complete novice to VBA and am trying to find a script that will help me to do the following
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
I have a large excel file that has multiply columns, and 1729 rows, I want to do the following,
Programme a commandbutton to unhide a sheet called “Info” then clear any filters they may be in place, then to go column “I” which contains lines
Similar to the below
<o:p> </o:p>
AMBER 187432
ANTICIPA 475482 <o:p></o:p>
ANTIPODES 077241 B<o:p></o:p>
APP UN 177174<o:p></o:p>
ARABELLA 1305 C<o:p></o:p>
ARABELLA 1305 L<o:p></o:p>
ARABIAN 133631 <o:p></o:p>
ARCTIC 190321
AZURA 201126
BELLA 141608
BIANCA 201362
<o:p> </o:p>
And filter it looking for all lines with say ie “APP 177174”
<o:p> </o:p>
Then I want to have another commandbutton that removes the filter , hides the sheet called “info” and returns to the original page ie “Front page”
thank you in advance for any help you can give me
Franklienovice
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Status
Not open for further replies.

Forum statistics

Threads
1,224,544
Messages
6,179,430
Members
452,915
Latest member
hannnahheileen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top