I want to copy/read code in a sheet module, and use the code inside the code in a code module?
I want to copy/read code in a sheet module, and use the code inside the code in a code module?
From a design aspect, it would be better to create "sub routines" stored in Code Modules and available to be called and used by all your other macros, regardless of where they are.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
I want to use the code in '.InsertLines( line, code)'(https://msdn.microsoft.com/en-us/lib.../gg251768.aspx), because as far as I know, one cannot import code directly into sheet modules in a new workbook. So I want to have a code module that writes the code to the sheet module, in a new workbook.
This perhaps(https://msdn.microsoft.com/en-us/lib.../ff820960.aspx).
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks