Page Header...

B

Berny

Hi folks,

Can you help me with next problem ?
I am inserting text from Excel into Word using the generic line:


oWordApp.Selection.TypeText Text:="Bla..Bla..Bla..."


The problem is that the text does enter also in the page header. What
do I have to do to avoid this ? Any suggestions are welcome.


Best regards,
Bernard
 
S

Stefan Blom

The following is one way to make sure that the text is inserted in
the main body of the active document:

oWordApp.ActiveDocument.Content.InsertAfter "Text here."

Most likely, you'd get a more knowledgeable reply in a VBA newsgroup,
though.

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 
B

Berny

Hi Stefan,

I found the problem. There was a rectangle object inserted in the
header that had it's text wrapping style wrongly selected. I changed
the style to be <In line with text> and the problem was solved.
Thanks anyway for your suggestion.

Best regards,
Bernard
 
S

Stefan Blom

I'm glad you found a solution (though I have to admit I'm curious to
find out how/why it helped).

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 

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