I am currently using MS Word 2000. I have received a file from client and
when i try to open it always opens the VB code and the error occurs it says
"compile error, method or data member not found" the cursor is on
.pictureWrapType = wdWrapMergeInline under with option. Is it due to the Word
version. I am assuming this function is in higher version. Please, help.
Thanks
Donna
Donna, what version does your client run?
*******************
~Anne Troy
www.OfficeArticles.com
www.MyExpertsOnline.com
> I am currently using MS Word 2000. I have received a file from client and
> when i try to open it always opens the VB code and the error occurs it says
[quoted text clipped - 4 lines]
> Thanks
> Donna
donna - 28 Jun 2005 16:54 GMT
Unfortunatly I don't know. Is there any way I can find it from the
file(template .dot) he sent me?
Thanks
> Donna, what version does your client run?
> *******************
[quoted text clipped - 13 lines]
> > Thanks
> > Donna
> I am currently using MS Word 2000. I have received a file from client
> and when i try to open it always opens the VB code and the error
[quoted text clipped - 5 lines]
> Thanks
> Donna
Yes, that was introduced with Word 2002 (I think -- I'm only looking at 2003
right now). The later versions have an option in the Tools > Options > Edit
dialog that let you set the default wrapping style for pasted or inserted
pictures. The code line you quoted is the VBA equivalent of that option. It
will never run in Word 2000, and in fact isn't necessary.
When the macro stops and the VBA editor opens, just delete that line, press
Ctrl+S to save the document without the line, and press F5 to let the macro
continue.
It sounds like that macro, which runs automatically when the document opens,
is meant to ensure a standard set of options. Word 2000 doesn't have a
settable option for picture wrapping, and the default wrapping for all
pictures is one of the "floating" settings (Square, I think). If you insert
pictures and want them inline, you'll have to use the Wrap button on the
Picture toolbar (or the Layout tab of the Format Picture dialog) to change
them.

Signature
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org