2 Replies Latest reply on Jul 14, 2008 5:37 PM by Jordon Musser

    macro to open specific excel file from solidworks

    Ray Abarca
      I am a newbie to writing macros so any help will be great. I figured out how to write a macro to open excel from Solidworks. But I'm having trouble opening a specific file. What I have so far is:

      Dim ExcelApp As Excel.Application
      Dim swApp As Object

      Sub main()
      Set ExcelApp = CreateObject("Excel.Application")
      ExcelApp.Visible = True
      Workbooks.Add
      ActiveSheet.DisplayRightToLeft = False

      End Sub



      Like I said, I'm very new to all this so basically any help would be great! thanks