We have written below macro to get the selected value from the object. Now basically Field: Table contains the table names. Now I would like to create the table bow with the fields that are available in the selected table. Can some one please help me on that? It is very urgent.
Hope my requirement is understandable, if not please let me know your questions.
Sub ShowRecord SET objDoc = ActiveDocument SET myfield = ActiveDocument.Fields("Table").GetPossibleValues X = myfield.Item(i).Text MsgBox X End Sub