Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Close a Design Table in VBA? 2

Status
Not open for further replies.

SBaugh

Mechanical
Mar 6, 2001
6,685
I know I have done this before and I am fairly certain it stupidly simple, but I can't remember or find in on the web.

I have a button on my design table and I just want to close the design table when I click. what the VBA code to do that?

Scott Baugh, CSWP [pc2]
CAD Systems Manager
Evapar

"If it's not broke, Don't fix it!"
faq731-376
 
Replies continue below

Recommended for you

I'm not sure... Of course, any button on a design table will have to run code that resides in Excel rather than SolidWorks... It may be as simple as telling Excel to close. I'm not sure exactly. It may be as complicated as having to connect to SolidWorks (GetObject) and telling SolidWorks to close the design table.

 
I don't recall having to use any API callouts in the past. I think you might be right, it might be as easy and telling excel to Close. Do you know what that code is? is it as easy as "Excel Close"?

Scott Baugh, CSWP [pc2]
CAD Systems Manager
Evapar

"If it's not broke, Don't fix it!"
faq731-376
 
Probably like Application.Close or something. Just type "Application." and pick one that looks closey or exity.

 
As a person who knows next to nothing about programing I had a good chuckle at handleman's answer.
 
Well... I popped open Excel and took a peek. It's Application.Quit. :)

 
No prob! For my own edification... did that work to exit the table?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor