Plz seeeeeeeeeeeeeee

syed_mushraf

Active Member
Joined
Oct 13, 2002
Messages
259
I want to save coding to activate for all sheets available in a workbook. Where shoul I save it. Because when I press Ctrl+Right mouse+View code on the sheet tab. It saves coding for current sheet.

Plz explain in detail to get rid of this problem.

Thankx in advance.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
You need to put the code in the ThisWorkbook module. Right click the Excel icon to the left of File on the menu and choose View Code.
 

syed_mushraf

Active Member
Joined
Oct 13, 2002
Messages
259
Dear Sir Andrew,
Many Many Thankx. Now its workig fine.

Can u plz tell me more if I need this coding to activate automatically for all workbook whenever I start excel. What should I do.

Rgds,
Musharraf
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
That's more difficult. You will need a Class Module in your PERSONAL.XLS or in an Add-In that is opened when you start Excel.

For more information search Help for "Application Object Events" and click "Using Events with the Application Object".
 

straus

Board Regular
Joined
Oct 7, 2002
Messages
192
You will have to type in the code in the ThisWorkbook module. Then you will have to Right click the Excel icon to the left of File on the menu and choose View Code. It will show you the code there after the run
 

Forum statistics

Threads
1,144,439
Messages
5,724,369
Members
422,547
Latest member
Vision1291

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
Top