Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Addin has problems with the ActiveX security warning

Hi,
My addin registers for the WorkbookOpen event and when this event gets
called it accesses some properties of ActiveX controls in the workbook. The
problem is that WorkbookOpen gets called before the user has closed the
ActiveX control security warning. If I access the ActiveX controls before
this message box is closed Excel will throw an exception. After the message
box is closed the code works fine.
Does anybody know how to wait until the user has closed that message box?

Thanks

Hans Merkl
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default Addin has problems with the ActiveX security warning

Hi,

Thanks for your input.
What is the exactly error msg you got?
Office Application is STA application.
You may try to call the Sleep method(API in VBA or Thread.Sleep in .NET),
but that will stop whole Office Thread.

I think we should dedicate how to dismiss the error dialog.

What ActiveX control are you using?
Have you tried to use the Windows MediaPlayer ActiveX control?



Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Addin has problems with the ActiveX security warning

Hi Peter,
It turns out we had a timer event set up in Excel. As soon as this timer
gets triggered the WorkbookOpen event gets called even if the user hasn't
closed the ActiveX warning yet. After disabling the timer everything is
working fine.

I guess this could be viewed as a bug in Excel.

Hans



On Wed, 08 Mar 2006 08:01:18 GMT, "Peter Huang" [MSFT] wrote:

Hi,

Thanks for your input.
What is the exactly error msg you got?
Office Application is STA application.
You may try to call the Sleep method(API in VBA or Thread.Sleep in .NET),
but that will stop whole Office Thread.

I think we should dedicate how to dismiss the error dialog.

What ActiveX control are you using?
Have you tried to use the Windows MediaPlayer ActiveX control?



Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 225
Default Addin has problems with the ActiveX security warning

Hi Max,

Thanks for you update!
And I am glad that you have resolved the issue.
So far without detailed troubleshooting and debugging it is hard to confirm
if this is a problem in the Excel product.
I do understand your concern in this scenario, I highly suggest you can
submit this feedback to our product feedback center:
http://lab.msdn.microsoft.com/produc...k/default.aspx

Thanks for your understanding!

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

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
Security Warning... In-Thought Links and Linking in Excel 0 August 21st 09 05:56 PM
Why am I getting 2nd macro security warning? joeu2004 Excel Discussion (Misc queries) 6 January 1st 08 09:44 PM
Disable ActiveX warning message Michelle Marcus Excel Discussion (Misc queries) 0 May 9th 06 03:08 PM
ADO Security Warning Martin Eckart Excel Programming 1 January 29th 04 04:35 AM
ActiveX Warning Message Gates 72 Excel Programming 0 October 26th 03 07:22 PM


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