Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Check for Addin before Update Links

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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Check for Addin before Update Links

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" wrote in message
ups.com...
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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 236
Default Check for Addin before Update Links

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
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
Update links box gives Continue or Edit Links dialog KarenF Excel Discussion (Misc queries) 0 May 18th 07 01:17 PM
Suppress Update Links dialog AND don't update links Paul Martin Excel Programming 3 August 3rd 06 01:14 AM
Excel Addin for Access Links Jim Normile Links and Linking in Excel 1 July 22nd 06 11:52 PM
Update links in my addin Rob Excel Programming 0 March 23rd 06 01:51 PM
Excel 2003 - Update or Don't Update Links Problem Jamie Excel Programming 4 July 7th 05 02:08 PM


All times are GMT +1. The time now is 09:36 AM.

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"