View Single Post
 
Old 11-27-2025, 10:59 AM
Ddadoo57 Ddadoo57 is offline Windows 11 Office 2021
Advanced Beginner
 
Join Date: Feb 2023
Posts: 94
Ddadoo57 is on a distinguished road
Default

Thanks Macropod! Yes, your code is much simpler and cleaner (I have to admit that after trying a bunch of things to solve the problem, I ended up writing and leaving useless lines of code).
I tested your code, it works very well, but the problem is still there. My toggleButtons are no longer refreshed when the footer is inserted.

Thanks gmaxey for your code! It's well thought out, works very well, and reduces the number of lines even further. I used ActiveDocument.AttachedTemplate...
However, I'll use Macropod's version instead, simply because I have more visibility of the whole thing, the construction of the fields, the building block call... Otherwise, unfortunately, the problem persists too as indicated above.

In the meantime, I've done several tests, and it seems that the problem comes from the content of the building block. It's a simple table with a single cell within text.
- The table is displayed correctly, but when it is present, the cursor partially disappears and no longer flashes in the document, even though I can still write text. I have the impression that part of the process remains in the footer, as if the insertion process were not complete and the cursor had not been fully rendered.
- Now, if I simply put text in my building block (without a table), it inserts correctly and the problem disappears. The toggle buttons work normally.

Everything suggests that the problem does indeed originate from the table in the building block.

If you have any ideas or solutions to resolve this issue, I would be very grateful if you could share them with me. For my part, I will continue to look into this issue with tables in BB. If I find out anything more, I will let you know.

Best regards,
David
Reply With Quote