Call Worksheet_Activate Event from procedure possible?

ShieBoon

Board Regular
Joined
May 3, 2011
Messages
111
Hi guys, is it possible to call a Worksheet's activate event from a procedure? Or maybe, refresh a worksheet from a procedure. i'm using excel 2003.

Thanks
Shie Boon
 
No, I mean remove the code from the Activate event, put it in a procedure in a normal module and then call that from both the activate event and your code above. That way there is no need to actually activate the sheet to run the code.
 
Upvote 0

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Oooohhh i see alright. I understand now. Wow u guys can really see the big picture here. Anw, i can't do that although it'll save me a few lines of codes. Cuz i've a code that sets NextRecord back to 0 to solve some deletion problems. I put this code in the Deactivate event of the MasterList worksheet. So... now i need a code to really 'REACTIVATE' the MasterList. And then i'll place that in the 'Insert New Record' procedure. haha..
 
Upvote 0
Alright rorya, sorry for the spam. Anw, got a qn fer ya. Could you explain to me how screenupdating works and where should i put it in my codes? I heard it helps to reduce load time.

Thanks!
 
Upvote 0
IT's OK - you weren't the spammer!

Screenupdating prevents Excel from redrawing the activewindow as your code makes changes. Not having to do that usually reduces the run time of your code.
 
Upvote 0

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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