I want to be able to call a Public subroutine in another workbook from a subroutine in the current
workbook.
Documentation says that this can be done using the syntax
vbaProjectName.ModulkeName.SubroutineName
This I have tried in assorted formats and it does not work.
Maybe I have the syntax wrong or I have missed the plot completely.
I know that I can do this using Application.Run(cccc) but I wanted to use the alternate suggested method.
Can anyone tell me how this is done.
As an Example, suppose I am writing a subroutine in a document called TestVB.xls
I want to Call a subRoutine called ShowInfo
that is in a Module called basGeneral
in a workbook called MyMacroLib.xls
Sub CallOutside()
SubroutineCallGoesHereButWhatIsIt?
End Sub
I have also tried to set a reference to the Library Workbook in Tools References as a third alternative but no joy. Would this final method work if it was an XLA Add-In instead of a Standard XLS
Any answers gratefully received.
Andrew Walker – andrew@d-l-r.co.uk