Sometimes the macros simply do not run.
I cannot reproduce the behavior.
What might help:
Close Word (and so close all open documents) (there is the hyopothesis, that an open instance of word might produce problems with ActiveDocument...)
Configure the template in Confluence again
** Upload again, save and close
What to try:
Do some logging:
Sub LogFileMacro(wrtstring As String)
Dim strFile_Path As String
Dim fHandle As Integer
fHandle = FreeFile
strFile_Path = "D:\studermartin\Downloads\log.txt"
Open strFile_Path For Append As fHandle
Write #fHandle, Now() & " : " & wrtstring
Close fHandle
End Sub
Sometimes the macros simply do not run. I cannot reproduce the behavior.
What might help:
What to try: Do some logging: Sub LogFileMacro(wrtstring As String) Dim strFile_Path As String Dim fHandle As Integer
fHandle = FreeFile
strFile_Path = "D:\studermartin\Downloads\log.txt" Open strFile_Path For Append As fHandle Write #fHandle, Now() & " : " & wrtstring Close fHandle End Sub