Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

VB Macro to select field values in listbox which does not have Object Name

Hi,

Need help on the macro!!

I have listbox where for field selection, Expression is set... hence we dont have field name to select values in Macro. Can anyone help me in fixing this.

To breif in detail macro what I used to select field values

ActiveDocument.Fields("SECTO.LB_SECTEUR",objSheet.Cells(i,18)).select TerrC.Item(h).Text

Now need to refer Object ID, since in listbox field has set to expression

Like ActiveDocument.Fields("OBJECT_ID",objSheet.Cells(i,18)).select TerrC.Item(h).Text

Can anyone provide me the syntax.

Thanks a lot in Advance!!

Regards,

Preethi

0 Replies