
Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> OS - XP Prof SP2, Office 2003.
> I have a VBA Userform with a text box where people type in the number
[quoted text clipped - 20 lines]
> insert the one variable in my document. Any assistance or ideas will
> be appreciated.
On Oct 26, 6:54 am, "Doug Robbins - Word MVP"
<d...@REMOVECAPSmvps.org> wrote:
> Assuming that you have a control named txtParties, then use the following
> code
[quoted text clipped - 45 lines]
>
> - Show quoted text -
Doug thanx that's perfect but I already had that. The problem is how
do I stop having Errors in my word document as in the word document I
say {DOCVARIABLE Firstparty] {DOCVARIABLE SecondParty} which works
correct as those variables always exist. Then I have {DOCVARIABLE
Thirdparty} but if there are isn't a third party the DOCVARIABLES
gives an error in my document and it stays there. Therefore me asking
how do I programme the document to say if the variable exist place it
in the specific place in the document. If it doesn't exist, ignore it.
So if Docvariable thirdparty is "" ignore it. I hope you understand
what I am trying to say.
Doug Robbins - Word MVP - 26 Oct 2007 11:16 GMT
Before I posted that, I did a bit of research and came to the conclusion
that if you do not assign a value to the variable (which is not being done
because in the case of the ThirdParty variables, they are inside the
If...End If construction.
The alternative would be to create the whole shootin match as one variable.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> On Oct 26, 6:54 am, "Doug Robbins - Word MVP"
> <d...@REMOVECAPSmvps.org> wrote:
[quoted text clipped - 59 lines]
> So if Docvariable thirdparty is "" ignore it. I hope you understand
> what I am trying to say.