InsertAfter - What am I missing?

H

Howard

I am using insertafter to add two lines of text that are
used by my fax server as embedded codes for determining
destination name and fax number. The following is an
example...

<TONAME:ME>
<TOFAXNUM:15555555555>

The text must be formated in a native printer font such
as courier.

When I look at the document it looks great but the fax
application does not recognize the embedded codes. If I
retype the same text manually it works fine. What am I
missing?

Thanks for taking a look. I am greatly appreciative for
any hints you may be able to provide.

Thanks,
Howard
 
C

Cindy Meister -WordMVP-

Hi Howard,

1) Version of Word?

2) Please spell out, step by step, exactly what you do
manually, that works

3) And post the macro code that's NOT working
am using insertafter to add two lines of text that are
used by my fax server as embedded codes for determining
destination name and fax number. The following is an
example...

<TONAME:ME>
<TOFAXNUM:15555555555>

The text must be formated in a native printer font such
as courier.

When I look at the document it looks great but the fax
application does not recognize the embedded codes. If I
retype the same text manually it works fine. What am I
missing?

Thanks for taking a look. I am greatly appreciative for
any hints you may be able to provide.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jan 24 2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 
M

Malcolm Smith

Hmm, looks like a WriteFax configuration; most of my grey hairs can be
attributed to this.

I tend not to use .InsertAfter to place text into a document. What I do
is to have a bookmark in the fax template and then replace the bookmark by
the text.

ActiveDocument.Bookmarks("bmkRecipientFaxNumber").Range.Text =
sRecipientFaxNumber

and so on and then I know exactly what I am putting where. And I make
sure that the paragraph is written in the correct font. If I remember my
WriteFax this stuff goes at the top of the template.

If the code is posted then I can compare it with my earlier WriteFax
efforts.

Malc
www.dragondrop.com
 

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