LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
pc pc is offline
external usenet poster
 
Posts: 6
Default Excel Analysis ToolPak - Bug when installed from Code

I have written some code which generally does exactly what I want it
to. However, when a new user runs it for the first time, they get a
400 error with no explanation, just a red cross.

I can repeat their experience by unchecking Analysis ToolPak and
Analysis ToolPak - VBA from Tools Add-Ins, and then re-opening the
spreadsheet. If I step through the code though, the error does not
occur.

I have removed the majority of my code, to try to establish where the
bug occurs, and I have found that even the few lines below will
reproduce the same error.

Sub Workbook_Open()

AddIns("Analysis ToolPak").Installed = True
AddIns("Analysis ToolPak - VBA").Installed = True

Sheets(1).Select

End Sub

It appears that I cannot select a worksheet after the Analysis ToolPak
is installed by code. I use Excel 2000 / Windows 2000 at home and
Excel 2002 / Windows XP at work, but both set-ups give me the same
problem.

I would be most grateful for any assistance on this. Many thanks in
anticipation.

Philip Clarke

 
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
Excel 2002 Analysis ToolPak Regression Analysis Help Requested MH Excel Worksheet Functions 1 February 28th 09 07:16 AM
installed analysis toolpak in xl2007, not visible Eddie O Excel Discussion (Misc queries) 3 July 2nd 07 04:56 PM
Can't get CUMPRINC to work. Have Installed Analysis Toolpak pcsski Excel Worksheet Functions 4 April 15th 06 03:59 PM
NETWORKDAYS gives #NAME even though Analysis Toolpak is installed Stan Brown Excel Worksheet Functions 15 June 10th 05 04:33 PM
Analysis ToolPak installed but no Data Analysis option Eric Stephens Excel Discussion (Misc queries) 3 February 2nd 05 09:17 PM


All times are GMT +1. The time now is 01:41 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"