Hi dzlmbq
You'll need to explicitly open the addin as well as your workbooks, in this code I have used vb6 to open an excel instance, make it visible and then open a workbook called key pad.xls; after that I open an addin called PTools in which I run the auto open events:
I take it you are early binding to excel? If so this should make sense.Code:Private Sub Command1_Click() Dim appXL As Excel.Application Set appXL = New Excel.Application appXL.Visible = True appXL.Workbooks.Open ("c:\data\key pad.xls") appXL.Workbooks.Open("C:\Documents and Settings\zilpher\Application Data\Microsoft\AddIns\PTools.xla").RunAutoMacros (xlAutoOpen) Stop appXL.Quit Set appXL = Nothing End Sub
HTH


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks