Skip to main content
1-Visitor
Oct 7, 2014 12:02 PM UTC
Solved

How to delete files from Mathcad15?

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

12-Amethyst
Oct 7, 2014 12:43 PM UTC

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
Oct 7, 2014 12:04 PM UTC

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

Translate
1-Visitor
Oct 7, 2014 12:15 PM UTC

An excel file in xlsx format

Translate
23-Emerald V
Oct 7, 2014 12:46 PM UTC

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