79809408

Date: 2025-11-04 21:32:53
Score: 2
Natty:
Report link

With the help of @Shrotter I get the idea here is my solution. I used referance string creation methods. It's a great success at my life. thank you again Shrotter.

Dim inz
    For Each inz In prtLst

        'Referans string creation
        Dim sRef 
        sRef = rtPrd.Name & "/" & inz.Name & "/!" & bdyName

        'Create referance
        Set rfBdy = rtPrd.CreateReferenceFromName(sRef)

        'Find da body
        sel.Clear
        sel.Add(rfBdy)
        sel.Copy

        'Activate target
        sel.Clear
        sel.Add(trgtPrt)
        sel.PasteSpecial "CATPrtResult"

    Next
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Shrotter
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Yunus Mert AŞKIN