Hi,
I have a userform in excel with a field called txtBenefitAmt. As part of my code, I have excel launch a word document and populate information given to me in the excel userform. The word document does not have a userform but I have txt boxes on the doc itself.
However, in certain instances I need to take the value input in txtBenefitAmt and manipulate it before inputting the info in the word document. Anything I have tried has not worked.
An example:
User inputs 300 in txtBenefitAmt field in excel. In one scenario of my code, I need to take half of that 300 and input that in the word doc field.
I have tried several things but one of them being:
wdDoc.txtJandSamt.Text = frmRLRP.txtBenefitAmt.Text / 2
It works fine when I don't try to manipulate the txtBenefitAmt value.
Any ideas on how to make this work?
Thank you.
I have a userform in excel with a field called txtBenefitAmt. As part of my code, I have excel launch a word document and populate information given to me in the excel userform. The word document does not have a userform but I have txt boxes on the doc itself.
However, in certain instances I need to take the value input in txtBenefitAmt and manipulate it before inputting the info in the word document. Anything I have tried has not worked.
An example:
User inputs 300 in txtBenefitAmt field in excel. In one scenario of my code, I need to take half of that 300 and input that in the word doc field.
I have tried several things but one of them being:
wdDoc.txtJandSamt.Text = frmRLRP.txtBenefitAmt.Text / 2
It works fine when I don't try to manipulate the txtBenefitAmt value.
Any ideas on how to make this work?
Thank you.