A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Mailmerge
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Problem updating REF fields



 
 
Thread Tools Display Modes
  #1  
Old April 30th, 2010, 07:37 PM posted to microsoft.public.word.mailmerge.fields
Roger[_22_]
external usenet poster
 
Posts: 9
Default Problem updating REF fields

I am reposting this since I have had no reply. I need help, please, with an
error message that I keep getting.
I am using Word2003 on XP and have read as much as I can on the error
"Reference source not found", but still have the problem. My form has a
number of ASK statements followed by REF fields throughout. For one field
(for example the dossier number) there is an ASK field to get the number and
then there are a number of {REF dossier} fields inserted in the document.
Where the fields are in a text
box they update just fine, but where the fields are in the document itself I
keep getting the error message.

I have added an autoNew macro

Dim oStory As Range
For Each oStory In ActiveDocument.StoryRanges
oStory.Fields.Update
If oStory.StoryType wdMainTextStory Then
While Not (oStory.NextStoryRange Is Nothing)
Set oStory = oStory.NextStoryRange
oStory.Fields.Update
Wend
End If
Next oStory
Set oStory = Nothing
End Sub

In print view all is filled in correctly, but when the form is being
filled-in via the ASK and REF fields all you can see is the error messages
and not the input data. I have tried adding /d" " but that also
doesn't seem to help! How can I get rid of the error message, please?

Thanks .. Roger


  #2  
Old April 30th, 2010, 07:54 PM posted to microsoft.public.word.mailmerge.fields
Peter Jamieson
external usenet poster
 
Posts: 4,550
Default Problem updating REF fields

Roger,

I do not know if I can solve your problem, but if you feel able to email
your current .doc/.dot to me, I can at least have a look at it. Despam
my email - pjj att pjjnet dott demon dott co dott uk

Peter Jamieson

http://tips.pjmsn.me.uk

On 30/04/2010 19:37, Roger wrote:
I am reposting this since I have had no reply. I need help, please, with an
error message that I keep getting.
I am using Word2003 on XP and have read as much as I can on the error
"Reference source not found", but still have the problem. My form has a
number of ASK statements followed by REF fields throughout. For one field
(for example the dossier number) there is an ASK field to get the number and
then there are a number of {REF dossier} fields inserted in the document.
Where the fields are in a text
box they update just fine, but where the fields are in the document itself I
keep getting the error message.

I have added an autoNew macro

Dim oStory As Range
For Each oStory In ActiveDocument.StoryRanges
oStory.Fields.Update
If oStory.StoryType wdMainTextStory Then
While Not (oStory.NextStoryRange Is Nothing)
Set oStory = oStory.NextStoryRange
oStory.Fields.Update
Wend
End If
Next oStory
Set oStory = Nothing
End Sub

In print view all is filled in correctly, but when the form is being
filled-in via the ASK and REF fields all you can see is the error messages
and not the input data. I have tried adding /d" " but that also
doesn't seem to help! How can I get rid of the error message, please?

Thanks .. Roger


  #3  
Old May 2nd, 2010, 10:56 AM posted to microsoft.public.word.mailmerge.fields
Roger[_22_]
external usenet poster
 
Posts: 9
Default Problem updating REF fields .. THANKS

Peter

many thanks. It looks like the problem was indeed in the AutoNew macro. I
have made the change to the french version of the same document you saw (in
dutch) and that also now works just fine. Thanks for your help

Roger
"Peter Jamieson" wrote in message
.. .
Roger,

I do not know if I can solve your problem, but if you feel able to email
your current .doc/.dot to me, I can at least have a look at it. Despam my
email - pjj att pjjnet dott demon dott co dott uk

Peter Jamieson

http://tips.pjmsn.me.uk

On 30/04/2010 19:37, Roger wrote:
I am reposting this since I have had no reply. I need help, please, with
an
error message that I keep getting.
I am using Word2003 on XP and have read as much as I can on the error
"Reference source not found", but still have the problem. My form has a
number of ASK statements followed by REF fields throughout. For one field
(for example the dossier number) there is an ASK field to get the number
and
then there are a number of {REF dossier} fields inserted in the document.
Where the fields are in a text
box they update just fine, but where the fields are in the document
itself I
keep getting the error message.

I have added an autoNew macro

Dim oStory As Range
For Each oStory In ActiveDocument.StoryRanges
oStory.Fields.Update
If oStory.StoryType wdMainTextStory Then
While Not (oStory.NextStoryRange Is Nothing)
Set oStory = oStory.NextStoryRange
oStory.Fields.Update
Wend
End If
Next oStory
Set oStory = Nothing
End Sub

In print view all is filled in correctly, but when the form is being
filled-in via the ASK and REF fields all you can see is the error
messages
and not the input data. I have tried adding /d" " but that also
doesn't seem to help! How can I get rid of the error message, please?

Thanks .. Roger




 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 04:23 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.