Hi,
I would like to write program in VBA which will find some text (which is in every document at the same place in table) and change it with another value.
The problem is that i don't know how to defined looking for values, but i don't want to defined strings.
Is this possible without predefined value?
Thank you for your answer!
Best regards,
Maraz
You can try to use SelectShapesAtPoint
sample code below is checking position x=105 mm, y = 148.5mm and if some shapes found there then duplicated to position x+15, y+50
Sub Test() Dim sh As Shape ActiveDocument.Unit = cdrMillimeter Set sh = ActivePage.SelectShapesAtPoint(105, 148.5, True) If sh.Shapes.Count > 0 Then sh.Duplicate 15, 50 Else: MsgBox ("nothing to select!"): Exit Sub End IfEnd Sub
Mek