Skip to main content
1-Visitor
Solved

How to delete files from Mathcad15?

Can I use VBA script to delete xlsx files from inside Mathcad?

12-Amethyst

Hi ,

there was an old thread to delete files.

either

search "delete file"

or try

http://communities.ptc.com/message/157493#157493

regards

Andy

8 replies

1-Visitor

What does you mean by delete xlsx files? Do you mean references?

Translate
1-Visitor

An excel file in xlsx format

Translate
23-Emerald V

Helena Jacobsson Sandlund wrote:

Can I use VBA script to delete xlsx files from inside Mathcad?

Yes, you can. Use a scriptable compononent - typically the button or tickbox control, right-click on it and choose Edit Script from the context menu. Then write your VBScript to delete the files. You can set up the control so that you can hard code the list into the control or create an array of files names in Mathcad and pass that array to the control (as an input).

Stuart

Translate