Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi
I want to extract the "oninput" / "onchange" action expression of a variable via macro.
However, using the type returns a type number only.
set v = ActiveDocument.Variables("vReportOnOpenSelfFilter")
prop = v.GetProperties
msgbox prop.OnInputActionItems.Item(0).Type ' 13 -> ?
How can I get the real expression (macro to be called if expression is a macro).
Thx - Marcel
If prop.OnInputActionItems.Item(0).Type = 13 Then
macro = prop.OnInputActionItems.Item(0).Parameters.Item(0).v
Msgbox "Macro: " & macro
End If
If prop.OnInputActionItems.Item(0).Type = 13 Then
macro = prop.OnInputActionItems.Item(0).Parameters.Item(0).v
Msgbox "Macro: " & macro
End If