Thanks.
I was trying to do something like this.
Sub CommandButton1_Click()
Dim XLAFound As Boolean
Dim i As Integer
XLAFound = False
For i = 1 To AddIns.Count
If AddIns(i).Name = "DaySheet.xla" Then
XLAFound = True
End If
Next
If XLAFound Then
AddIns("DaySheet.XLA").Installed = True
Else
AddIns.Add(Filename:=ThisWorkbook.Path & "/" & "DaySheet.XLA", CopyFile:=True).Installed = True
End If
Application.ExecuteMacro "DaySheet.XLA!Module1!showdataentryform"
End Sub
And attaching it to the button - which of course, does not work. I was trying to call the macro
from code so I could make sure the XAL was loaded first. Is this possible?
Chrissy.