docvariable

C

coconutt

I have a document that is generated from another program. The fields from the
other and are listed as docvariable. Is there a way to take these variables
in word and use them elsewhere.

EX: ILS03(this is patient balance) i would like to add 35% to this. any
thoughts

Thanks
 
G

Greg

I suppose if you know the value of one docvariable, you could create
another based on that value.

Sub Test()
Dim oVar As Variables
Set oVar = ActiveDocument.Variables
oVar("Test").Value = "200"
oVar("Product").Value = oVar("Test").Value * 0.35
ActiveDocument.Fields.Update
End Sub
 
D

Dave Lett

Hi Greg,

To add 35%, I think the line would be

oVar("Product").Value = oVar("Test").Value * 1.35

Dave
 
C

coconutt

I wouldn't know the variable, as to the ammount. I only know what the
variable is called from the generated letter
 

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