View Single Post
 
Old 03-09-2022, 05:50 AM
VBAadvocate VBAadvocate is offline Windows 10 Office 2019
Novice
 
Join Date: Feb 2022
Posts: 12
VBAadvocate is on a distinguished road
Default Application.Run with args fails, solved

Many thanks, Andrew.

I tried the following with success:
Application.Run "aMD_ForThisDocument.aMD_Document_ContentControlOn Enter", ctrl 'Works

I'm passing a reference to a ContentControl to a module routine in a stand-alone template which has nearly all the required code. However, I wanted to also have a seperate template that loads that stand-alone template and use its code. The stand-alone template's ThisDocument class calls the routines in its aMD_ForThisDocument module instead of having the code in the class mod and allow other projects use them. (Confusing? Probably. Sorry.)

Neverthelsess, I got it working. I tried including the addin's filename to help avoid having duplicate module names in various addins but that failed.

Thanks again, VBAadvocate (Jim)
Reply With Quote