Question : creating a word add-in/macro

Ironically, I can't seem to find this via google, so hoping someone can help me out.

I simply want some macro/add-in code in order to create a 'global' macro for Word. I already have the macro code I want, but want to be able to open it once (i.e., a .dot file), and then have it "installed" no matter what document I am editing/working on, unless I explicitly state 'uninstall macro'.

Ideally you have the 'base' code that I would need to simply plug my own macro into. Please include any necessary instructions in getting it running.

Thanks!

Answer : creating a word add-in/macro

This function should work in VB6
1:
2:
3:
4:
5:
6:
7:
Function GetStartupFolder() As String
    Dim wdApp As Word.Application
    
    Set wdApp = CreateObject("Word.Application")
    GetStartupFolder = wdApp.Options.DefaultFilePath(wdStartupPath)
    wdApp.Quit
End Function
Open in New Window Select All
Random Solutions  
 
programming4us programming4us