Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Open and Enable xla file from vba code?

Hi -

I am trying to open an add-in (xla file) from vba but I am not
prompted to "enable macros" on it...so the xla file is rendered
useless. My security setting are fine. I can open add-ins via double
click or dragging them into a workbook and I receive the "enable
addins" message box. Here is the code I am using:

Public Sub OpenAddIn()
Workbooks.Open Filename:="\xxxxxxxxxx.xla"
End Sub

Is it possible to open an add-in via vba with macros enabled?

Thanks,
Jason

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Open and Enable xla file from vba code?

yes it is possible since i do it myself
thought i dont see what is wrong with your code
put macro security to lowesst level may be


"Snap" wrote:

Hi -

I am trying to open an add-in (xla file) from vba but I am not
prompted to "enable macros" on it...so the xla file is rendered
useless. My security setting are fine. I can open add-ins via double
click or dragging them into a workbook and I receive the "enable
addins" message box. Here is the code I am using:

Public Sub OpenAddIn()
Workbooks.Open Filename:="\xxxxxxxxxx.xla"
End Sub

Is it possible to open an add-in via vba with macros enabled?

Thanks,
Jason


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
open file with code Steve Excel Discussion (Misc queries) 1 April 24th 09 08:21 PM
Map drive to open a file with code Les Stout[_2_] Excel Programming 4 July 23rd 07 03:27 PM
Don't open file if no response to enable macros [email protected] Excel Programming 2 October 4th 05 08:51 AM
How to open a zip file from the code? ana Excel Programming 1 April 26th 04 02:49 PM
VBA code to open file? pgoodale[_2_] Excel Programming 4 December 30th 03 01:41 PM


All times are GMT +1. The time now is 12: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"