Skip to main content
1-Visitor
October 7, 2014
Solved

How to delete files from Mathcad15?

  • October 7, 2014
  • 2 replies
  • 2794 views

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

Best answer by AndyWesterman

Hi ,

there was an old thread to delete files.

either

search "delete file"

or try

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

regards

Andy

2 replies

1-Visitor
October 7, 2014

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

1-Visitor
October 7, 2014

An excel file in xlsx format

23-Emerald V
October 7, 2014

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