Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I created a macro where i get a value from textbox to created variable. But if print it to msgbox i get an empty value though in variable overview i see that my variable get a value
what do i do wrong?
set Psum=ActiveDocument.GetSheetObject( "TX01" )
ActiveDocument.Variables("vPsum").SetContent Psum.GetText, true
suma=vPsum
msgbox("Sum is " &suma)
Thanks
Store the value in a vb variable something like this:
set Psum=ActiveDocument.GetSheetObject( "TX01" )
strAmt = Psum.GetText
ActiveDocument.Variables("vPsum").SetContent strAmt, true
msgbox("Sum is " & strAmt)
Store the value in a vb variable something like this:
set Psum=ActiveDocument.GetSheetObject( "TX01" )
strAmt = Psum.GetText
ActiveDocument.Variables("vPsum").SetContent strAmt, true
msgbox("Sum is " & strAmt)
Hi,
Thanks it did the trick.
I wonder if it is possible to achieve the same result without using a variable vPsum just somehow get the object value straight in code