View Single Post
 
Old 12-12-2024, 05:12 AM
ADAL ADAL is offline Windows 10 Office 2021
Novice
 
Join Date: Dec 2023
Posts: 26
ADAL is on a distinguished road
Default

Quote:
Originally Posted by gmaxey View Post
Why don't you post your document?
I HAVE A TROUBLE UPLOADING NOW THE DOCUMNET BUT I CAN UPLOAD AN IMAGE ABOUT IT (I don’t need the macro for this specific document; this is just an example of what I need it for). I have decorative elements that need to be adjusted to the size of the text in the paragraph, as shown in the ATTACHED image.
SCREENSHOT1.png
My macro does the following:

Finds paragraphs with specific styles and shapes.
Ungroups the shapes.
Resizes and adjusts their positions based on the paragraph width.
Regroups the shapes.
AS YOU CAN SEE IN THE SECOND ATTACHED IMAGE
SCREENSHOT2.png
However, the issue is that after regrouping, the new group does not stay anchored to the original paragraph, which is what I need.

Thank you for your help!

Last edited by ADAL; 12-12-2024 at 05:13 AM. Reason: MISTAKE
Reply With Quote