View Single Post
 
Old 03-18-2022, 12:43 PM
gorkac gorkac is offline Windows 10 Office 2019
Banned
 
Join Date: Jul 2021
Location: Usa
Posts: 62
gorkac is on a distinguished road
Default

Quote:
Originally Posted by Charles Kenyon View Post
See Using VBA to Insent an AutoText Entry or other Building Block.
Have your macro and the building block in the same template and use the fullname of ThisDocument as your source location.
I didn't explain myself well, sorry.
I have the template in
Code:
Application.Templates( _
            "C:\Users\gorka\Desktop\IT GATu 2.dotm"). _
            BuildingBlockEntries("HOME AND EXPOSURE").Insert Where:=Selection.Range, RichText _
            :=True
If I work from that directory, the macros work. But my co-workers have to save a .docm copy in the path L:\02.- Reports 2022\File"folder with random number"\IT GATu 2.dotm
If they try to rework the document from that new location, the building blocks no longer work.
Note: folder with random number are folders that they must name as a long number. For example: L:\02.- Reports 2022\File\1725849\IT GATu 2.dotm

Last edited by gorkac; 03-18-2022 at 12:45 PM. Reason: One more question.
Reply With Quote