macro evaluation in Word97

F

Feng

I ran into a very interesting problem. I have a nested macro. I have a merge field inside of an if macro, which is inside of a includepicture macro. I have a command that updates the fields. When I tried it on my computer, it updated successfully. However, when I tried on anothe rcomputer in Word97, it did not update. Instead, it pointed to an incorrect link. So, my guess is that the fields is not being evaluated. Does anyone know why this might be the case? Thanks.
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?RmVuZw==?=,

I'm going to assume that you're using the wrong term here, and that you mean
"field" instead of "macro" throughout. Further, that the question has nothing
at all to do with VBA or macros, but in how fields evaluate.

Please show us the nested field combination in question.
I ran into a very interesting problem. I have a nested macro. I have a
merge field inside of an if macro, which is inside of a includepicture macro.
I have a command that updates the fields. When I tried it on my computer, it
updated successfully. However, when I tried on anothe rcomputer in Word97, it
did not update. Instead, it pointed to an incorrect link. So, my guess is
that the fields is not being evaluated. Does anyone know why this might be
the case?
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 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 :)
 
F

Feng

Hi, the field code looks something like this.
{INCLUDEPICTURE "{IF { MERGEFIELD list }<> "" "C:\\proj\\hrosen\\JPT0803\\Signature\\{ MERGEFIELD LIST }.bmp" "C:\\sign3.bmp" }" \d}

The interesting part is that even though this field was not evaluated in the document, it was evaluated when merged.
----- Cindy M -WordMVP- wrote: -----

Hi =?Utf-8?B?RmVuZw==?=,

I'm going to assume that you're using the wrong term here, and that you mean
"field" instead of "macro" throughout. Further, that the question has nothing
at all to do with VBA or macros, but in how fields evaluate.

Please show us the nested field combination in question.
I ran into a very interesting problem. I have a nested macro. I have a
merge field inside of an if macro, which is inside of a includepicture macro.
I have a command that updates the fields. When I tried it on my computer, it
updated successfully. However, when I tried on anothe rcomputer in Word97, it
did not update. Instead, it pointed to an incorrect link. So, my guess is
that the fields is not being evaluated. Does anyone know why this might be
the case?
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 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 :)
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?RmVuZw==?=,
{INCLUDEPICTURE "{IF { MERGEFIELD list }<> ""
"C:\\proj\\hrosen\\JPT0803\\Signature\\{ MERGEFIELD LIST }.bmp"
"C:\\sign3.bmp" }" \d}
The interesting part is that even though this field was not evaluated in
the document, it was evaluated when merged.So, may we consider the problem as solved? If not...

does Mergefield List contain only the file name, or does it also have path
elements (including double-backslashes)?

What, very exactly, are you seeing in Word 97 (error message)?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 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 :)
 
F

Feng

Sorry for not making myself clear. What I meant is that when this nested field is added in Word, I do not see what should be the first picture in the record. Instead, I see the picture that Word97 shows for invalid link in it's place. The funny part is that this does not happen on my computer, but on someone else's computer. As a result, I think it is a fixable problem.

----- Cindy M -WordMVP- wrote: -----

Hi =?Utf-8?B?RmVuZw==?=,
{INCLUDEPICTURE "{IF { MERGEFIELD list }<> ""
"C:\\proj\\hrosen\\JPT0803\\Signature\\{ MERGEFIELD LIST }.bmp"
"C:\\sign3.bmp" }" \d}the document, it was evaluated when merged.So, may we consider the problem as solved? If not...

does Mergefield List contain only the file name, or does it also have path
elements (including double-backslashes)?

What, very exactly, are you seeing in Word 97 (error message)?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 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 :)
 
C

Cindy M -WordMVP-

Hi =?Utf-8?B?RmVuZw==?=,

And which version of Word do *you* have?

You also didn't answer my second question in the last message, about the contents of the merge field.
Sorry for not making myself clear. What I meant is that when this nested field is added in Word, I do not see what should be the first picture in the record. Instead, I see the picture that Word97 shows for invalid link in it's place. The funny part is that this does not happen on my computer, but on someone else's computer. As a result, I think it is a fixable problem.

----- Cindy M -WordMVP- wrote: -----

Hi =?Utf-8?B?RmVuZw==?=,

"C:\\proj\\hrosen\\JPT0803\\Signature\\{ MERGEFIELD LIST }.bmp"
"C:\\sign3.bmp" }" \d}
the document, it was evaluated when merged.
So, may we consider the problem as solved? If not...

does Mergefield List contain only the file name, or does it also have path
elements (including double-backslashes)?

What, very exactly, are you seeing in Word 97 (error message)?

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 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 :)
 

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