Is there a way to run a code module in another workbook which is already open in Excel but is not an add-in and has no VBE reference? (There are reasons why I don't want to do either of these, but the explanation is rather long-winded so I'll omit it).
I have a feeling the answer is no (which is fine - I don't need it, but it'd make a nice touch in this one project), but thought I'd ask in case anyone knew a way.
Something using the likes of . . .
Set VBCodeMod = ThisWorkbook.VBProject.VBComponents("NewModule").CodeModule
StartLine = .ProcStartLine("TargetProcedure", vbext_pk_Proc)
and somehow executing that procedure...?
I have a feeling the answer is no (which is fine - I don't need it, but it'd make a nice touch in this one project), but thought I'd ask in case anyone knew a way.
Something using the likes of . . .
Set VBCodeMod = ThisWorkbook.VBProject.VBComponents("NewModule").CodeModule
StartLine = .ProcStartLine("TargetProcedure", vbext_pk_Proc)
and somehow executing that procedure...?