ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   manually run macro's (https://www.excelbanter.com/excel-programming/395887-manually-run-macros.html)

bernd

manually run macro's
 
Hello,

I've a workbook which I want to protect. I protected the sheet etc
already. But it is still possible to run macro's manually trough the
menu bar.ToolMacromacros

Can this be turned of when opening the workbook?

Thanks in advance.

Bernd


Gary Keramidas

manually run macro's
 
just name it private and it won't show in the list.
for example:

Private Sub test()

--


Gary


"bernd" wrote in message
ups.com...
Hello,

I've a workbook which I want to protect. I protected the sheet etc
already. But it is still possible to run macro's manually trough the
menu bar.ToolMacromacros

Can this be turned of when opening the workbook?

Thanks in advance.

Bernd




Bob Phillips

manually run macro's
 
or add

Option Private Module

to the start of the module

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
just name it private and it won't show in the list.
for example:

Private Sub test()

--


Gary


"bernd" wrote in message
ups.com...
Hello,

I've a workbook which I want to protect. I protected the sheet etc
already. But it is still possible to run macro's manually trough the
menu bar.ToolMacromacros

Can this be turned of when opening the workbook?

Thanks in advance.

Bernd






bernd

manually run macro's
 
Thanks, the option Private Module works for me.



All times are GMT +1. The time now is 11:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com