VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how can I disable or enable alert message (vbExclamation) on AutoCAD 2013

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
923 Views, 2 Replies

how can I disable or enable alert message (vbExclamation) on AutoCAD 2013

all drawings are with internal macro.

 

When I open one of them I have the AutoCAD message appears "Macros may containes virus..." Enable Macro?

 

If I want to open a big package of drawings with a VBA macro... I do not want this message. whatever my machine, I am working in drafting office.

The best way would be to integrate the command within the VBA macro to open the files.

 

how can I disable or enable alert message (vbExclamation) on AutoCAD 2013, directly within a VBA macro in AutoCAD?

 

Thanks in advance.

2 REPLIES 2
Message 2 of 3
norman.yuan
in reply to: Anonymous

Having VBA code embedded in a drawing is bad practice these days,

 

With that said, you can disable the warning by

 

1. command "VBARUN", which bring up VBA Macro dialog box.

2. Click "Options..." button, which brings up "Options" dialog box.

3. Uncheck "Enable macro virus protection" check box, which is checked by default. You may want to reverse the change after doing the batch drawing processing/opening.

Norman Yuan

Drive CAD With Code

EESignature

Message 3 of 3
Anonymous
in reply to: norman.yuan

Thanks a lot norman but in my context I need to activate this feature temporary.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost