software discussion forum > CAD > VBA:Close ALL

VBA:Close ALL

Rank: 1

Marijan Glavac

Newbie

posts: 0

Registered: 2011-6-5

Message 1 of 4

04-04-2011 04:28 . am | View his/her posts only

I try to close all open drawing with one click on button with this code :fficeffice" />





Sub cmdCloseAll_Click()
Dim SviOtvoreniNacrti As ZwcadDocument



For Each SviOtvoreniNacrti In ThisDocument.Application.Documents
SviOtvoreniNacrti.Close
Next
End
End Sub









Program close all open drawings but each time ZWCAD 2011 crashes down .





Any idea ?

Rank: 1

zw_admin

Newbie

posts: 0

Registered: 2012-1-14

Message 2 of 4

 VBA:Close ALL
05-04-2011 10:23 . pm | View his/her posts only


Hi magla, Can you tell me your ZWCAD version number?


We tested in 2011.02.08(16566) and it do crash, so we have submitted the crash report to R&D, the Bug ID is 15601, you can keep it for further inquery. Thanks!

Rank: 1

Marijan Glavac

Newbie

posts: 0

Registered: 2011-6-5

Message 3 of 4

06-04-2011 04:27 . am | View his/her posts only
VERNUM = "2011.02.28(16649)"

Rank: 1

zw_admin

Newbie

posts: 0

Registered: 2012-1-14

Message 4 of 4

 VBA:Close ALL
05-04-2011 10:23 . pm | View his/her posts only
hi magla, ZWCAD 2012 Beta released recently, if this crash problem still happen, please let me know.