1 Reply Latest reply: Apr 2, 2012 6:26 AM by Celambarasan Adhimulam RSS

    InputBox Macro

      Hi people,

       

      i'm trying to right this macro.

       

      Theres no errors in the macro but its not working.

       

      Mybe im righting something that is wrong.

       

      Can someone help?

       

      Sub NewField

                Set a=ActiveDocument.Variables("v0")

                Set b=ActiveDocument.Variables("v1")

                Set c=ActiveDocument.Variables("v2")

                In_val0=a.GetContent.String

                In_val1=b.GetContent.String

                In_val2=b.GetContent.String

                if In_val0<>"" and In_val1<>"" and  In_val2<>"" then

           temp = inputBox("Text")

           ActiveDocument.Variables("v3").SetContent temp, true

           End if

      End Sub

       

       

      Thanks,

      Eliano