Hidding Macro names and coding

M

mrbalaje

I am using a record a macro option in my excels. I want to use the macro as
usual with the shortcut key that i had assigned for it.

Also I want to hide the names of the macros and their coding so that no one
should can know how many macros that i am using and see the codings.

I know how to lock the coding, so that no one can see it. I want to know how
i can hide the names of the different macros. Even after hiding the names and
the codings i want to use the macros with the shortcut keys.
 
B

Bob Phillips

Put Option Private Module at the head of the macros module.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
M

mrbalaje

I had done that, but my shortcut keys to run the same macros is not working.
can you fix it.
 
B

Bob Phillips

Take that off then and just make the sub private

Private Sub myMacro()

(after assigning to shortcut to the macro).

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
G

Gord Dibben

Bob

I can't get this method to work.

Sub test()
Worksheets("Sheet2").Range("A1:A10").Copy _
Destination:=ActiveSheet.Range("C1")
End Sub

Shortcut key CTRL + M operates as desired.

Change to

Private Sub test()
Worksheets("Sheet2").Range("A1:A10").Copy _
Destination:=ActiveSheet.Range("C1")
End Sub

Shortcut won't work. Still looking for original macro name, I assume.


Gord
 
Top