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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,222,017
Messages
6,163,401
Members
451,835
Latest member
kristianb63

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