[Word 2003] macro issues

G

Guest

hi all,

in the project i work for, they use the collaborative service called
Microsoft Sharepoint (iShare) for sharing word documents across the team. the
macros that the template comprises are no longer available in the documents
when downloaded from iShare. what could be wrong?

thanks for any helpful ideas.
 
P

Pat Garard

G'Day Shivi,

Unlike Excel, when you create a new document in Word any macros that
may be in the Template are NOT copied to the document.

On the original machine, the Template is still 'attached' and the macros
in the Template are available 'to' the Document whenever it is open.

For a target machine you must either copy the Macros to the Document or
provide a copy of the Template.

The Macros may be copied manually (Organizer) or programmatically (i.e.
by using a 'one off' Macro in the Template) using the OrganizerCopy Method.

From Word, switch to the VBA editor and search for help on 'OrganizerCopy'.

If you need further advice, you should consider posting your query in the
newsgroup:
microsoft.public.word.programming
 
G

Guest

thats a great piece of info. thanks Pat.


Pat Garard said:
G'Day Shivi,

Unlike Excel, when you create a new document in Word any macros that
may be in the Template are NOT copied to the document.

On the original machine, the Template is still 'attached' and the macros
in the Template are available 'to' the Document whenever it is open.

For a target machine you must either copy the Macros to the Document or
provide a copy of the Template.

The Macros may be copied manually (Organizer) or programmatically (i.e.
by using a 'one off' Macro in the Template) using the OrganizerCopy Method.

From Word, switch to the VBA editor and search for help on 'OrganizerCopy'.

If you need further advice, you should consider posting your query in the
newsgroup:
microsoft.public.word.programming
--
Regards,
Pat Garard
Melbourne, Australia
_______________________
 
P

Pat Garard

You are most welcome!

I should have said that, if you proceed with this, the 'copy' code should go
in the 'Document_New()' event of the Template - the Macros will then be
copied into each NEW document (and therefore once) only.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top