capture text element content (string) and re-use to attach ref

Hello,

Question with moving old V8i MicroStation Basic to Connect Edition VBA (or macro recorder).

Starting from a DGN that has a rectangular matrix (mesh/ grid?) over the map of the country. In each case (box) of the DGN matrix we have a text element (e.g. 511S1).

The VBA should allow to manually select the text in one box (click), save that text in a variable and then attach the corresponding raster ref file which is the topographical Map matching that specific box.

So the macro should in this example attach raster ref "511S1.tif"  (not intercative)., which is the text string captured by the selection + the ".tif" string.

I searched a lot but can not find the trick to save that text content in a var in VBA.

Thank you very very much in advance for your help,

Best regards,

Nicolas Tobbackx