p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

Go Back   p2p.wrox.com Forums > Microsoft Office > Excel VBA > Excel VBA
I forgot my password
Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other programmers’ questions, win occasional prizes given to our best members, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 27th, 2003, 12:43 PM
Authorized User
Points: 107, Level: 2
Points: 107, Level: 2 Points: 107, Level: 2 Points: 107, Level: 2
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default ActiveX Warnings in Excel 2002 (XP)

Hi All,

We have an Add-In that uses ActiveX controls as part of its implementation.

When we try to run this on Excel 2002 (XP), we get the following Yes/No warning:
"This application is about to initialize ActiveX controls that might be unsafe. If you trust the source of this file, select OK and the controls will be initialized using your current workspace settings."

I have two questions:
- Is there a way for the user to set an option, so that this pop-up will not show, and the ActiveX control will be properly initialized?

- How do I "sign" the ActiveX to prevent these errors? I know that there are registry keys that can be set for using ActiveX controls in Internet Explorer, but those keys don't seem to prevent this problem.

Thanks,
Paul
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old September 10th, 2004, 01:19 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Paul,

I was wondering if you were ever able to solve this problem. I'm having the same problem right now.

Thanks,
Bich


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #3 (permalink)  
Old September 10th, 2004, 02:50 PM
Friend of Wrox
Points: 318, Level: 6
Points: 318, Level: 6 Points: 318, Level: 6 Points: 318, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , Denmark.
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Q2: It's not an 'ERROR'. Whats the idea with a warning that anyone could override by code?

Q1: have you tried changing the settings under Function/Macros/Security ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #4 (permalink)  
Old September 22nd, 2004, 12:50 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't consider the message an error. I just want to know what setting is bringing up the message. I've looked at the settings under Security, but that's not it. I've also looked at the Norton Anti-Virus office plug-in, but that's not it. Office also has a group policy setting that deals with "Unsafe ActiveX controls". I tried changing that, but it doesn't work. What a pain!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #5 (permalink)  
Old September 22nd, 2004, 01:32 PM
Friend of Wrox
Points: 318, Level: 6
Points: 318, Level: 6 Points: 318, Level: 6 Points: 318, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , Denmark.
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Maybe not, but that's what pagates mentioned and my answer was aimed at that Q.

Ms is describing how to change your own registry settings but also warns you to do so:

http://support.microsoft.com/default...b;en-us;827742

I don't know if that's what you're asking for.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #6 (permalink)  
Old September 22nd, 2004, 01:54 PM
Registered User
Points: 6, Level: 1
Points: 6, Level: 1 Points: 6, Level: 1 Points: 6, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Sep 2004
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oops. Sorry. Thanks for the reply. I tried that registry setting also, and that still didn't work.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #7 (permalink)  
Old September 22nd, 2004, 02:10 PM
Friend of Wrox
Points: 318, Level: 6
Points: 318, Level: 6 Points: 318, Level: 6 Points: 318, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , Denmark.
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, it seem as if we're stuck with it. There's a lot about securitysettings here but I expect you've already visited the place and I don't know whether there's anything of interest for you:

http://www.microsoft.com/technet/pro...ain/xpsec.mspx

Sorry I can't help.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #8 (permalink)  
Old November 22nd, 2004, 01:33 PM
Registered User
Points: 2, Level: 1
Points: 2, Level: 1 Points: 2, Level: 1 Points: 2, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2004
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Hi Paul, I wanted to ask you if you could find a solution to this problem.

Thank you...




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #9 (permalink)  
Old August 16th, 2006, 06:52 PM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I am running in to the same issue, I want an excel created and send it out as an email, the popup warning is not allowing me to automate this procedure, please let me know if you have a solutions.

Thanks
SK
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #10 (permalink)  
Old August 6th, 2007, 07:18 AM
Registered User
 
Join Date: Aug 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

I hope this post isn't coming too late.

I had thesame issues and this was the solution.

Forms3 and ActiveX initialization (Office 2003 and Office XP)
By using the common security registry key, you can instruct the Office 2003 and Office XP programs to set Forms3 ActiveX initialization security for all Office 2003 and Office XP programs that support Forms3. If the setting of the key is 2 or 3, the user is prompted to determine how Forms3 forms will load. The prompt only appears one time per session in a program. The location of the registry key is the following:
HKEY_CURRENT_USER\Software\Microsoft\VBA\Security
In either the registry or policy node, the value name LoadControlsInForms can be set to the following values and respective actions.Value name: LoadControlsInForms
Value type: REG_DWORD
Value Data: [ 1 | 2 | 3 | 4 ]

Description of the value data
The value data can be explained as follows:• Use 1 for a UFI or SFI signed control that supports safe and unsafe mode, load the control in unsafe mode. For an SFI signed control that only supports a safe mode configuration, load the control in safe mode.
• Use 2 (default setting) for a UFI signed control, if the user responds with a Yes to the prompt, load the control in unsafe mode. If the user responds with a No, load using the default properties. For an SFI control that supports both a safe and unsafe mode, if the user responds to the prompt with a Yes, load the control in unsafe mode. If the user responds with a No, load the control using safe mode. If the SFI control can only support safe mode, load the control in safe mode.
• Use 3 for a UFI signed control, if the user responds with a Yes to the prompt, load the control in unsafe mode. If the user responds with a No, load the control with its default properties. For an SFI control, load in safe mode.
• Use 4 for a UFI signed control, load with the default properties of the control. For an SFI control, load in safe mode (considered to be the safest mode).


Refer to the link below for a comprehensive description of the solution.
http://support.microsoft.com/default...Product=xl2003

If the security key does not exist create it.

Hope this works.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Excel XP and Excel 97 chiefouko Beginning VB 6 9 March 30th, 2007 04:32 AM
Problems installing IIS 5 on XP-M.C.E. 2002 urbanwebdev Internet Information Services 2 December 22nd, 2006 07:03 PM
Excel 2002 Sp1 & Excel Sp2 anup.bihani Excel VBA 0 November 23rd, 2006 04:48 AM
Excel 2000 vs Excel 2002 Macro Issue williadn Excel VBA 1 July 14th, 2005 10:09 AM
Excel in win 2000 to excel winxp (excel 2002) Max Excel VBA 3 August 28th, 2003 05:44 AM



All times are GMT -4. The time now is 03:22 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© 2010 Wiley Publishing, Inc