Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello there,
how can I refer to vba-code from an xlm-macrosheet ? Thank you in advance, Kind regards, H.G. Lamy |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Try the following. I've migrated some old systems with similar code. In the macro code on the Macro Sheet: =RUN("FileName.XLM!ProtectSh",FALSE) or (Both .xlm and .xls file extensions work) =RUN("FileName.XLS!ProtectSh",FALSE) where FileName is the name of the file with the VBA code The 4.0 macro and VBA code can be in the same file, but need not be. The VBA code in the file with the called routine: '*** PROTECT THE ACTIVE SHEET - NO PW *** Sub ProtectSh() ActiveSheet.Protect DrawingObjects:=True, _ Contents:=True, Scenarios:=True End Sub Best Regards, Walt -----Original Message----- Hello there, how can I refer to vba-code from an xlm-macrosheet ? Thank you in advance, Kind regards, H.G. Lamy . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you Walt !
Regards, H.G. Lamy "Walt Weber" schrieb im Newsbeitrag ... Hi, Try the following. I've migrated some old systems with similar code. In the macro code on the Macro Sheet: =RUN("FileName.XLM!ProtectSh",FALSE) or (Both .xlm and .xls file extensions work) =RUN("FileName.XLS!ProtectSh",FALSE) where FileName is the name of the file with the VBA code The 4.0 macro and VBA code can be in the same file, but need not be. The VBA code in the file with the called routine: '*** PROTECT THE ACTIVE SHEET - NO PW *** Sub ProtectSh() ActiveSheet.Protect DrawingObjects:=True, _ Contents:=True, Scenarios:=True End Sub Best Regards, Walt -----Original Message----- Hello there, how can I refer to vba-code from an xlm-macrosheet ? Thank you in advance, Kind regards, H.G. Lamy . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
macro to call other macros | Excel Worksheet Functions | |||
How do I call VBA subs from different spreadsheet from code behind form? | Excel Discussion (Misc queries) | |||
Call Center Management: How to calculate 'cost per call' | Excel Discussion (Misc queries) | |||
Call macros from another XL file | Excel Programming | |||
Macros - call or launch from fromula | Excel Programming |