View Single Post
 
Old 01-28-2024, 06:06 AM
Italophile Italophile is offline Windows 11 Office 2021
Expert
 
Join Date: Mar 2022
Posts: 554
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Please explain what you mean by "when I launch a document without the VBA template it does not have the functionality I desire."
You may find it helpful to read this article first: What is the relationship between a Microsoft Word document and its template? | ShaunaKelly.com

Please also explain your process of using the template. Typically, templates are stored in either the User Templates folder or the Workgroup Templates folder and accessed from File | New.

There is no need to use FSO to check if a file exists as VBA has a function for that. Just add the following into your project
Code:
Public Function FileExists(fullPath As String) As Boolean
  On Error GoTo NoFile
  FileExists = (Dir(fullPath, vbNormal) <> "")
  Exit Function
NoFile:
  FileExists = False
End Function
Reply With Quote