word crashing

J

jon

Hi everyone.

I've got a word document which automatically goes into a
mailmerge, fills out the details and ends up with the
final letter. This worked fine, until the folder name
changed. Now when i open it up, it can't find the data
and it crashes.

I thought it would be simple enough to change the folder
name and it would sort it all out, but when it crashes,
it won't let me save anything, so the changes aren't
saved, and it all starts again!

My question is this. Is there any way to stop word
running an "open document" procedure before it opens and
crashes itself? Or is there some way of fooling word
into pausing before it runs the open macro?


any help would be greatly appreciated.


Tia Jon
 
J

JB

jon said:
Hi everyone.

I've got a word document which automatically goes into a
mailmerge, fills out the details and ends up with the
final letter. This worked fine, until the folder name
changed. Now when i open it up, it can't find the data
and it crashes.

I thought it would be simple enough to change the folder
name and it would sort it all out, but when it crashes,
it won't let me save anything, so the changes aren't
saved, and it all starts again!

My question is this. Is there any way to stop word
running an "open document" procedure before it opens and
crashes itself? Or is there some way of fooling word
into pausing before it runs the open macro?


any help would be greatly appreciated.


Tia Jon
Hi
Have you tried right clicking the document and selecting open with? I
know this sometimes works for me.

If you can't get it to work like that you can open it programmatically
and use Wordbasic.DisableAutoMacros (or something like that, I'll check
it out when in work) this will enable you to have the document open then
do what you have to do and save.

HTH

J
 
J

JB

JB said:
Hi
Have you tried right clicking the document and selecting open with? I
know this sometimes works for me.

If you can't get it to work like that you can open it programmatically
and use Wordbasic.DisableAutoMacros (or something like that, I'll check
it out when in work) this will enable you to have the document open then
do what you have to do and save.

HTH

J
Application.DisableAutoMacros = 1 ' disables

Application.DisableAutoMacros = 0 ' Enables

and you can use with:

Application.DisableAutoMacros = 1 ' disables
Document.Open Filename
Application.DisableAutoMacros = 0 ' Enables

HTH

J
 

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