×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Insert/Edit a General Table via VBA

Insert/Edit a General Table via VBA

Insert/Edit a General Table via VBA

(OP)
I am writing a VBA macro that will populate a Solidworks General Table from a range of cells in Excel. What I would like to do is either edit an existing general table or insert a new one, via an If/Then statement. I can insert one with no problem, but I can't seem to edit/select an existing one. The funny thing is, I can get this to work with a Revision Table. Here is the If/Then statement for the Rev Table:

Dim RevTable As Object
If Not Part.GetCurrentSheet.RevisionTable Is Nothing Then
Set RevTable = Part.GetCurrentSheet.RevisionTable
Else
Set RevTable = Part.GetCurrentSheet.InsertRevisionTable(True, 0, 0, 4, _
        "W:\BLOCKS\SolidWorks Templates\Other\REVISION TABLE.sldrevtbt")
End If

This works just fine. What can I do for the general table? Any suggestions???

RE: Insert/Edit a General Table via VBA

smma,

You apparently posted this question in the SolidWorks forum too.  I posted my reply there.

SA

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources