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.
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..
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.
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.
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.