I have an Excel workbook with some basic opening code in Workbook_Open
and some code in xSheet
i.e.
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Run s00Config_Worksheet_SelectionChange(Target)
End Sub
where sub s00Config_Worksheet_SelectionChange
exists in an Excel AddIn which is loaded (and visible for the moment).
But when I execute the program in the first sheet all I get is Sub or Function not defined.
In the AddIn the sub has been defined as
Public Sub s00Config_Worksheet_SelectionChange(ByVal Target As Range)
Questions are:
- Am I thinking this the right way, and
- How do I get my excel sheet to execute subs in the Excel AddIn (XLAm), there are a lot of them