PC Review


Reply
Thread Tools Rate Thread

Check for Addin before Update Links

 
 
John Michl
Guest
Posts: n/a
 
      8th Jun 2007
I have a number of workbooks that are distributed across my company
that use functions found in the Analysis Tool Pak. I'm learning that
some people don't have that add-in checked so they receive an update
links error/message when they open the file. I placed the following
code in the Woerksheet.Open" event. Unfortunately, it appears to run
after the sheet attempts to update links. How can I avoid the update
links message?

Thanks - John

Private Sub Workbook_Open()
AddIns("Analysis ToolPak").Installed = True
AddIns("Analysis ToolPak - VBA").Installed = True
End Sub

 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      8th Jun 2007
I tried to duplicate your problem and it really didn't happen exactly. I
saved a workbook that used the EDATE function, cloed it and detached the
add-ins. When I opened the workbook there was no error message about not
being able to update links. Of course when I calced Excel the function
returned an error.

Anyway, if it really is a link updating issue and your users have Excel 2002
or later, you can use Edit, Links, Startup Prompt to specify that links
should not be updated and users not prompted. Then your Workbooks_Open code
will have time to save the day.

--
Jim
"John Michl" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I have a number of workbooks that are distributed across my company
> that use functions found in the Analysis Tool Pak. I'm learning that
> some people don't have that add-in checked so they receive an update
> links error/message when they open the file. I placed the following
> code in the Woerksheet.Open" event. Unfortunately, it appears to run
> after the sheet attempts to update links. How can I avoid the update
> links message?
>
> Thanks - John
>
> Private Sub Workbook_Open()
> AddIns("Analysis ToolPak").Installed = True
> AddIns("Analysis ToolPak - VBA").Installed = True
> End Sub
>



 
Reply With Quote
 
gimme_this_gimme_that@yahoo.com
Guest
Posts: n/a
 
      9th Jun 2007
You use this to see if a reference exists ...

Dim result as boolean

On Error Resume Next
result = Not Me.VBProject.References("Analysis Tool PAC") Is Nothing

I don't have an immediate example handy of loading a reference but it
should be found in the VBProject.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update links in my addin =?Utf-8?B?Um9i?= Microsoft Excel Programming 0 23rd Mar 2006 01:51 PM
Automatic Update Links check disabled?? Se7en Microsoft Word Document Management 2 3rd Jun 2004 10:50 PM
Addin to gather web links and store in Outlook ? Fabrice Cavarretta Microsoft Outlook Contacts 0 26th Jan 2004 08:42 PM
Addin to gather web links and store in Outlook ? Fabrice Cavarretta Microsoft Outlook Discussion 0 26th Jan 2004 08:42 PM
MS Delete Links Addin (Wizard) SEDK Microsoft Excel Charting 6 11th Nov 2003 05:43 PM


Features
 

Advertising
 

Newsgroups
 


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