LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Use AddIn to Open an addtional Excel Workbook

I have an Addin that I've written that contains the normal things.
However, there are references to worksheets that must be updated from
time to time. Rather than including these worksheets in the addin, I
have chose to include them in a separate workbook that contains only
those worksheets. I would like for the addin to open the workbook
automatically. Below is the Workbook_Open Code for the addin.

Private Sub Workbook_Open()
Call CreateMenu
'Open File
Dim moduleLineList As Object
Dim filePath As String
Dim fullPath As String
Dim fileNam As String
On Error Resume Next
fileNam = APPNAME & "TechData.xls"
filePath = Application.ThisWorkbook.Path
fullPath = filePath & "\" & fileNam
Set moduleLineList = GetObject(fullPath)

End Sub


This works fine on the .xls version of the addin, but whe I convert it
to an AddIn and install it, i get errors including the class name for
GetObject, etc.

Any Suggestions?

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open XL - A Powerful Excel Addin Ashish Jain Setting up and Configuration of Excel 0 April 27th 09 02:31 PM
Open XL - A Powerful Excel Addin Ashish Jain Excel Worksheet Functions 0 April 27th 09 02:31 PM
Open XL - A Powerful Excel Addin Ashish Jain Excel Worksheet Functions 0 April 27th 09 02:26 PM
Open XL - A Powerful Excel Addin Ashish Jain Charts and Charting in Excel 0 April 27th 09 02:25 PM
Copying a sheet from an addin into an open workbook OkieViking Excel Programming 2 April 17th 05 07:39 PM


All times are GMT +1. The time now is 11:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"