Richard,
Excel is loaded on my C drive and I created a workbook and stored it
out on our network drive. When I went to someone else's desk and
opened the workbook on their computer and selected "enable macros" the
macros didn't function and I believe I got a message about Excel not
being able to find personal.xls. Since other people in the company
will be using this workbook off of the network drive, I need to store
the macros where they will work for everyone.
Tina
> Tina
>
[quoted text clipped - 14 lines]
> > I created macros and stored them in Personal.xls and now want to move
> > them to "This Workbook". How do I do that?
Peo Sjoblom - 29 Dec 2006 18:35 GMT
If these macros need to be in a particular workbook you should not put
them in ThisWorkbook, you put event macros there like for instance if
you need a macro to run automatically when the workbook is opened.
Put them in a regular module in that particular workbook, open the
workbook, press Alt + F11, in the VBAPproject pane to the left select
the workbook in question, click insert>module and in the large blank
window that opens paste the code from the personal.xls, close the VBE by
pressing Alt + Q. Save the workbook. Another way would be to export the
module from Personal.xls as a *.bas file and import it to the workbook
Regards,
Peo Sjoblom
> Richard,
>
[quoted text clipped - 26 lines]
>>> I created macros and stored them in Personal.xls and now want to move
>>> them to "This Workbook". How do I do that?
RichardSchollar - 29 Dec 2006 18:41 GMT
Tina
Can you post the code behind the macros you are trying to run? Assuming
they are self-contained (ie don't refer to other workbooks - like
Personal.xls) the fact that Personal.xls couldn't be accessed shouldn't
matter. Can you see the code for the macros actually in the workbook
on the network? Please post this.
Richard
> Richard,
>
[quoted text clipped - 26 lines]
> > > I created macros and stored them in Personal.xls and now want to move
> > > them to "This Workbook". How do I do that?