Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 05-08-2014, 06:26 PM
chrismad chrismad is offline Removing add in programatically Windows 7 64bit Removing add in programatically Office 2013
Novice
Removing add in programatically
 
Join Date: Apr 2014
Posts: 5
chrismad is on a distinguished road
Default Removing add in programatically

Hi,

I need to remove an add in (global template) programatically.

I uncheck and remove the add in from the list as follows:


Code:
Application.AddIns(sAddInFileName).Installed = False
Application.AddIns(sAddInFileName).Delete
However, when trying to delete the actual file in the Startup folder via
Code:
Kill sAddInFilenameAndPath
I run into error # 70 "Permission denied".

Hence, I assume the template file is still open but when trying to use
Code:
Documents(sAddInFilenameOnly).Close
before the kill command, I get error # 4160 "Bad file name". Yet, sAddInFilenameOnly holds the proper string.

Thanks for your help.
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing add in programatically Programatically hide slides during presentation ky1488 PowerPoint 4 09-11-2013 08:21 AM
How do I send an email programatically? macroscope Outlook 7 02-01-2013 02:27 PM
Removing add in programatically Programatically Managing Word Document Structure mlbliss Word VBA 3 11-07-2012 07:42 PM
Removing add in programatically Apply font color programatically using VBA Word divakarganta Word VBA 3 08-08-2012 08:05 PM
Programatically open Outlook folder (set focus) using RDO? NicMic Outlook 0 01-10-2008 03:27 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:22 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft