Foating picture error message from Word 2002

E

eselick

Hi

I'm being plagued by the following message each time when I insert a
small gif file in my docuements odd and even headers:

"Floating pictures will not display in normal view. Please switch to
print view."

I really am in print view and have even added the following code before
inserting the image.

'Get rid of "Switch to print view message for floating pictures"
ActiveWindow.View.Type = wdPrintView

As soon as the next line executes I get the message.

Set shpHeader = ActiveDocument.Shapes.AddPicture _
(FileName:="C:\ELLIOT\AddressBook\Lines\BD10219_.gif", _
linktofile:=False, savewithdocument:=True, _
Anchor:=rngHeader)


The error is intermittent, but I sure have it at the moment, and with
many sections I have to press Ok about 100 times to create my
docuement.

As usual I truly appreciate any ideas.

Elliot
 
E

eselick

Hi all,

I seem to have fixed this one by totally cleaning up all the
accumulated macros in this very old file.

Actually I'm running in VB6 and use VBA as a test bed. In any case I
started with a new and empty Word file and no longer get the error.

Hope this helps anyone else getting strange errors.

Elliot
 
W

Word Heretic

G'day (e-mail address removed),

also, consider .Range.InlineShapes.AddPicture

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


(e-mail address removed) reckoned:
 

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