Macro help

IrvineP

New Member
Joined
Jan 19, 2003
Messages
16
Hi peoples, thanks for the help in advance.

I've got a spreadsheet that has a number of simple macro's in. It probably has about 15-20. 3 of these will actually call all the others.

The workbook has to be updated by other users and so I would like the macro's to exist - but I don't want other users other than myself to be able to edit the macro's - and if truth be told probably see the 12-17 that are called.

Is there any easy way of doing this?

Cheers

PEte
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

Damon Ostrander

MrExcel MVP
Joined
Feb 17, 2002
Messages
4,239
Hi Pete,

Yes, you can simply password protect the VBAProject. It will be usable but not visible unless unlocked with the password. To do this, in the VBE go to Tools > VBAProject Properties. Go to the Protection tab and check the Lock Project for Viewing checkbox. Then enter your password twice and click OK.

Damon
 

KenWright

Active Member
Joined
Jan 14, 2005
Messages
267
Just to add to what Damon has advised,

Go into the VBE (ALT+F11) and where you see it say 'Sub xyz()' blah blah, change that to 'Private Sub xyz()' Any macro you do this for will not appear in the Tools / Macro / Macros dialog box. You can still call them from another sub, just not see them in the box.
 

Forum statistics

Threads
1,148,526
Messages
5,747,216
Members
424,069
Latest member
kamkwok1hh

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