简体   繁体   中英

VBA code which can open and save file in any application

Can u suggest a VBA code which can open and save file in any(ex:autocad) application? Ex: I would like to open multiple autocad .dwg files in Autocad application and save the same.regards Anand SN

You can open any file in it's native program using

Shell "CMD /C START " & myFileName

because the operating system manages file type associations.

Saving would require an API from that particular software, no programming language can do that without the use of an external library because it is the responsibility of the software , not the operating system

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM