An easy way to generate code is to create a Macro with the function you would like to accomplish. Then select the "SAVE AS/EXPORT" option under FILE. Select "SAVE AS VISUAL BASIC MODULE".
After that you may elect to include "ADD ERROR HANDLING TO GENERATED FUNCTION" and/or "INCLUDE MACRO COMMENTS".
The code now exists under MODULES as CONVERTED MACRO-macroname. From here you can copy/paste the code where you need it.
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.