Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to read the value of inputfield in macros.

Hello Everyone, I have created a INPUTFIELD variable and put that in the pivot table in the expression using INPUTSUM. Now i want to read the value of the changed inputfield in the macro. I am getting the error for object required.

But if i do the same thing with INPUTBOX variable it works fine and shows msgbox with variable value. see below below code

set a = ActiveDocument.getvariable("Variable1")

msgbox(a.getcontent.string)

Now if i try to display the value of inputfield in the same way as above it gives me object required: 'a' error.

It will great if anyone can help me out with this.

Regards.

0 Replies