A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Setting up and Configuration
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Excel Add-ins



 
 
Thread Tools Display Modes
  #1  
Old September 22nd, 2003, 12:41 PM
Stuart
external usenet poster
 
Posts: n/a
Default Excel Add-ins

I am opening an Excel spreadsheet in VBA. This is being
done through Automation from Access.

When the spreadsheet is opened the add-in 'Analysis
Toolpak' is turned on.

However, i cannot use functions of this add-in, such as
Weeknum.

Any Ideas?

Rgds

Stuart
  #2  
Old September 23rd, 2003, 03:15 AM
Dave Peterson
external usenet poster
 
Posts: n/a
Default Excel Add-ins

This worked ok for me (but from MSWord):
Option Explicit
Sub testme01()

Dim xlobj As Object

Set xlobj = CreateObject("excel.application")
xlobj.Visible = True

xlobj.AddIns("analysis toolpak").Installed = False
xlobj.AddIns("analysis toolpak").Installed = True

'do your stuff

xlobj.Quit
Set xlobj = Nothing

End Sub

It shows up in the tools|Addins list, but isn't really loaded. You can see that
it's not there in the VBE (if you make the application visible and go into the
VBE.




Stuart wrote:

I am opening an Excel spreadsheet in VBA. This is being
done through Automation from Access.

When the spreadsheet is opened the add-in 'Analysis
Toolpak' is turned on.

However, i cannot use functions of this add-in, such as
Weeknum.

Any Ideas?

Rgds

Stuart


--

Dave Peterson

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:55 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.