Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VB Script Help


I need help with a VB script for Excel.

I need a VB script that runs when an Excel file is opened to check t
see if the Analysis ToolPak addin is checked, if not checked to check
if checked, leave it alone.

Any ideas?

Thanks in advance.

Quanch

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default VB Script Help

Quanchi,

Try something like

Sub Auto_Open()
Application.AddIns("Analysis ToolPak").Installed = True
End Sub



--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Quanchi" wrote in message
...

I need help with a VB script for Excel.

I need a VB script that runs when an Excel file is opened to check to
see if the Analysis ToolPak addin is checked, if not checked to check,
if checked, leave it alone.

Any ideas?

Thanks in advance.

Quanchi


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VB Script Help


Ok.....this works on my computer....but when I send the file to someone
it gives this a VB error.

Any ideas

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default VB Script Help

What error? Is the Analysis ToolPak available on the offending PC?


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com

"Quanchi" wrote in message
...

Ok.....this works on my computer....but when I send the file to someone,
it gives this a VB error.

Any ideas?


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VB Script Help


The computer that I tried to open the Excel file on does have th
Analysis ToolPak on it.

When the file is opened, I get "Run Time error 1004."

And it says "Unable to set the installed property of the Addin class."

Any ideas?

Thanks,

Quanch

-----------------------------------------------
~~ Message posted from http://www.ExcelTip.com
~~View and post usenet messages directly from http://www.ExcelForum.com

Reply
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
help with vba script lariveesl New Users to Excel 5 June 6th 09 08:53 AM
I need some VB script please rlee1999 Excel Discussion (Misc queries) 2 October 25th 06 05:46 PM
VB Script Krista Excel Worksheet Functions 4 May 20th 06 03:12 PM
VB Script help Quanchi Excel Programming 3 October 6th 03 03:13 PM
what is a vb script george Excel Programming 1 July 16th 03 09:56 AM


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

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

About Us

"It's about Microsoft Excel"