Preview | SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
RARay Abarca20/02/2008
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
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