Data analysis doesnt appear in the Tools menu

S

Sai

Hi,

When I open an excel workbook programatically data analysis doesnt
appear in the tool menu, whereas when I open workbook by
double-clicking it works fine. Following is the code how I open excel
workbook from VB app.

Dim objExl As Excel.Application
Dim strDocName As String

strDocName = "C:\test.xls"
Set objExl = CreateObject("Excel.Application")
objExl.Workbooks.Open strDocName
For Each ai In objExl.AddIns
If ai.Installed Then
objExl.Workbooks.Open(ai.FullName).RunAutoMacros 1
objExl.Workbooks.Open(ai.FullName).RunAutoMacros 3
End If
Next
objExl.Visible = True
objExl.Workbooks("test.xls").Activate


What needs to be done to make data analysis appear on the tools menu?

Appreciate your help.

Thanks
SAI
 

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

Top