How to disable ActiveX -pop up warning?

Just learned how to get a model -view to a userform via eDrawing API. This needs to load an ActiveX control and it gives a warning every time while running this macro or even editing it. Can I disable this and how?

OS: Win7 64bit

SolidworksApi macros
Answers 6
DM
DM 2011-08-10 Best Answer

What language are you using?

Dan

SF
SF 2011-08-10

I'm with VBA, SW -build-in macro editor.

Btw. Seems that my uploads/images are not working properly. Don't know why but sorry for inconvinience.

SF
SF 2011-08-10

No need to worry SW Corp guys are working with the image problem, seems that those are shown about 50/50 chance. Last time I visited I saw your images and now I do not.

DM
DM 2011-08-10

I cannot see the picture on your first post. I'm guessing that you are using SW 2010 or 2011 because of the error, which one is it. I'm not familiar with the VBA, I’ve been using VB2010 but I’ll try to take a look when I have time.

Dan

SW2011

DM
DM 2011-08-10

I created a sample form and it seems to work OK on my machine. I am attaching it so you can try it on your machine just to see if it is perhaps a machine setting.

Dan

SW 2011

SF
SF 2011-08-12

Thank you, Dan for your input. Got the same result (warning) with your sample.

Did some research (googling) and found a solution:

http://www.mrexcel.com/forum/showthread.php?t=212739

HKEY_CURRENT_USER\Software\Microsoft\VBA\

10) Right-click VBA, point to New, and then click Key.

11) Type Security, and then press ENTER to name the new subkey.

12) Right-click Security, point to New, and then click DWORD Value.

13) Type LoadControlsInForms, and then press ENTER to name the value.

14) Double-click LoadControlsInForms

15) In the Value data box, type 1, and then click OK.

16) Quit Registry Editor.

This did the trick and now works fine without any pop up -warnings!