This is the code in my "ThisDocument" Microsoft Word Object, but apparently the projectPath variable is never getting set. Any ideas on what is going wrong to prevent the variable from being set?
Code:
Option Explicit
Public projectPath As String
Sub setProjectPath()
projectPath = "serverURL\projectFolder"
End Sub
Sub OpenForm(control As IRibbonControl)
ProjectName.Show
End Sub