Opening Excel in Word

  • Thread starter Thread starter Kas
  • Start date Start date
K

Kas

I currently have a macro that runs in excel but is
accessed from a menu in Word. My problem is that there
are some .xla files that need to be run at startup with
Excel to integrate it with our document management
software. Is there a way I can get these .xla file to
load when the Excel object loads from Word? Below is the
macro that I have now:

Sub StartTimesheet()
Dim xlapp As Object
Dim Timesheet As Object
Set xlapp = CreateObject("Excel.Application")
Set Timesheet = xlapp.Workbooks.Add("c:\program
files\softwise\forms\timesheet.xls")
xlapp.Visible = True
Set xlapp = Nothing
Set Timesheet = Nothing
End Sub

Any help on this would be greatly appreciated.
 
Load them yourself. (in your code)

They don't load when excel is started up using Ole Automation.
 
Thanks for all your help, but I keep getting an error
message that the add-in template is not valid. Any other
suggestions?
 
make sure you use the right name for it. See help for details.

Just like if I called you Pete, you wouldn't answer.
 
I exhausted Help, and it still says that the add-in
template is not valid. The addin is in the right place.
I checked to make sure that the name was correct. Maybe
I'm missing a step? I'm about to pull my hair out.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top