Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Suppress prompt upon installing an addin programatically

Using Office 2007 and Windows XP.

I built the following function that can be called to install or uninstall an
add-in on the fly. It works fine, the only problem is, when installing, XL
prompts "Copy <filename to the addins folder?" In this case, the answer
should always be "No" and I do not want this prompt to appear to users when
this program is triggered.

Please note that I have already tried Application.DisplayAlerts = False but
this does not work. Am I reduced to SendKeys (shudder) at this point or can
someone please post example code to fix this?

Private Function AddInInstall(argInstall As Boolean, Optional argFullName As
String, Optional argBaseName As String)
If argInstall = True Then Application.AddIns.Add Filename:=argFullName
Application.AddIns(argBaseName).Installed = argInstall
End Function

  #2   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default Suppress prompt upon installing an addin programatically


Sorry, I found it just now; there is an additional argument:

Application.AddIns.Add Filename:=argFullName, CopyFile:=False

Thanks to all who looked at this post.


"XP" wrote:

Using Office 2007 and Windows XP.

I built the following function that can be called to install or uninstall an
add-in on the fly. It works fine, the only problem is, when installing, XL
prompts "Copy <filename to the addins folder?" In this case, the answer
should always be "No" and I do not want this prompt to appear to users when
this program is triggered.

Please note that I have already tried Application.DisplayAlerts = False but
this does not work. Am I reduced to SendKeys (shudder) at this point or can
someone please post example code to fix this?

Private Function AddInInstall(argInstall As Boolean, Optional argFullName As
String, Optional argBaseName As String)
If argInstall = True Then Application.AddIns.Add Filename:=argFullName
Application.AddIns(argBaseName).Installed = argInstall
End Function

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
Suppress Update Links Prompt Brent E Excel Discussion (Misc queries) 2 October 16th 08 10:56 PM
installing an addin drumerboy[_8_] Excel Programming 4 April 25th 06 08:38 PM
Installing Addin via Automation Aragorn[_2_] Excel Programming 6 October 26th 05 10:54 PM
How to suppress the prompt from merging cells Shue-Fen KIng Excel Programming 2 August 18th 04 01:38 PM
Addin Not Installing zSplash Excel Programming 3 April 15th 04 07:40 PM


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

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"