I have several macros recorded in the personal.xls workbook on my laptop. I need to be able to copy those and give them to my team members. I keep having secrutity problems. What is the best way to do this?
It's not quite that simple. I have reset the security to low and am still having the problem. what is the best way to copy macros? Should I copy the whole Personal.xls file? Rename it?
How about saving personal.xls with a different name in a shared folder, read only recommended.
Then the team can open the workbook and access all the macros. If opened read only then several can open at same time. You (or any team member) can open without read only to amend the macros or add new ones).
For new macros:
create a macro in your personal.xls, in a separate module then in the Visual Basic Editor use the properties window (F4) to rename the module to something meaningful.
Now export the macro.
Open your Shared Macros workbook.
Alt-F11 to open VBE
Import the file you just created
Save the workbook
Tell the team there is a new macro.
The above approach does not necessitate explaining to the team how to create a personal.xls.
Beware macros that have the same shortcut keys as others your team may have created. Identical names of sub-routines causes fewer issues.
Finally you could develop a macro that opens your shared macros file (read only, with worksheets hidden). Save this in Personal.xls linked to an on-open event. All your macros will always be available just as if they were in personal.xls. Best of both world I reckon. My robust, checked, generic macros are all in one workbook. Those in development or being trialled are in personal.xls (usually).
P.S.
Not sure that you have clearly answered LSTAN's question about security issues. I see no reason why my response should ease any of those problems - sorry!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.