#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 683
Default Automation

What code do I need to write, if I would like an advanced filter to run
everytime I click on a particular worksheet.

So if I go to worksheet A and change something then the next time I go to
worksheet b the advanced filter will have automatically run for me?

I am able to get this far.

Range("C8:AH233").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _
Range("BA3:BA4"), Unique:=False
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ed Ed is offline
external usenet poster
 
Posts: 399
Default Automation

Check out the VBA help for the Activate Event and the Example.

"Brian" wrote in message
...
What code do I need to write, if I would like an advanced filter to run
everytime I click on a particular worksheet.

So if I go to worksheet A and change something then the next time I go to
worksheet b the advanced filter will have automatically run for me?

I am able to get this far.

Range("C8:AH233").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:=

_
Range("BA3:BA4"), Unique:=False



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
Automation from VB6 Robert A. Boudra Excel Programming 2 November 16th 04 11:20 PM
automation agent orange Excel Programming 2 April 12th 04 01:45 PM
Automation Tom Excel Programming 3 December 31st 03 08:51 AM
Automation [email protected] Excel Programming 0 December 12th 03 02:52 PM
OLE Automation Bob C. Excel Programming 1 December 9th 03 12:37 AM


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