Load VBA on Activated Sheet
What you are looking for is event driven programming and the answer is yes.
On the worksheet you want to run the code... Right Click the Tab and select
View Code. Just above the code window in the left had drop down box (General)
select Worksheet. the drop down on the Right will give you all of the Events
you can program against. You are looking for Activate. When you select the
event a code stub will be added for you...
--
HTH...
Jim Thomlinson
"RigasMinho" wrote:
Hey,
in Visual basic you can put in code to run when the form is loaded up.
is there a way to do the same for Excel when a worksheet is loaded up?
|