Jump to content

VBA how to prevent pop-up windows when opening or closing a file?


Andresig

Recommended Posts

Hi, Is there a command in Autocad-Vba that you can turn on or turn off pop-up windows when you open or close a file?

e.g.: prevent to open the window "File already exist. Do you want to replace it?"

Link to comment
Share on other sites

You can change your Expert variable setting to deactivate that warning, but I'd advise turning it back on at the end of your program.

Link to comment
Share on other sites

If your issue is about accessing AutoCAD files by Visual Basic code, please be aware that Save, SaveAs and Close methods are overwriting without warning the existing files – for this reason you have to write your own code to warn user.

 

Regards,

Link to comment
Share on other sites

  • 2 weeks later...

My issue is when a file is open in some files appear the window asking me if I want to load a macro, thing that i don't want to do, I only want to open the file with out enabling any macro.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...