If the code is protected then you are not going to have much luck. Otherwise
check out this link...
http://www.cpearson.com/excel/vbe.aspx
--
HTH...
Jim Thomlinson
"Maury Markowitz" wrote:
> I have a huge library of extremely complex code that we run every
> night. In general terms, 1/3rd of that code is used only once a day
> when the book is created. Another 1/3rd is utility code that could be
> removed to some other location. Finally, there is the last third that
> needs to stay with the book and the users interact with.
>
> The code is currently located in a 2.8 meg XLA on a network drive.
> This is also a problem because the first person that opens the book
> "locks" the XLA and I can no-longer save changes to it. Additionally,
> if the network falters even for a second, the link to the XLA "goes
> bad" and every command starts returning random errors.
>
> So what I'm thinking about doing is moving the code the user touches
> into a separate library of some sort, and then saving it directly into
> the book. That should eliminate both problems, as well as ensure they
> have the right code version for the book they have open.
>
> So finally, here's my question: if I place the code that needs to be
> with the book into an XLA, can I copy it into the spreadsheet's
> modules via VBA? Are there general-purpose commands for moving code
> around in general?
>
> Maury
>
>