Question : Word 2007 VBA Macros Disappear

I have a bunch of macros written in VBscript that I run from a Macro-Enabled Word Document (.DOCM) in MS Word 2007.

In general, all of my macros work, except one that I recently changed to accept an argument/function parameter. This is designed to allow me to parameterize an existing function. For some reason, whenever I give my vba macros the ability to use function parameters, they disappear on me. Any suggestions?

Thank you,


The code is:
Code Snippet:
1:
2:
3:
Sub RunMyFavMacro(sParam1 As String)
     MSG(sParam1)
End Sub

Answer : Word 2007 VBA Macros Disappear

Insert the below code and run this code instead.

Sub RunFavMac()

call RunMyFavMacro

End Sub

Random Solutions  
 
programming4us programming4us