This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub solin() | |
Dim swApp, Part As Object | |
Dim boolstatus As Boolean | |
Dim longstatus As Long, longwarnings As Long | |
On Error Resume Next | |
Set swApp = GetObject(, "SldWorks.Application") | |
If swApp Is Nothing Then | |
MsgBox "Please open SW and try again" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sub catin() | |
On Error Resume Next | |
Set catProg = GetObject(, "CATIA.Application") | |
If catProg Is Nothing Then | |
MsgBox "Please open CATIA and try again" | |
Exit Sub | |
End If | |
catProg.Visible = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'https://docs.microsoft.com/en-us/office/vba/api/excel.application.executeexcel4macro | |
Option Explicit | |
Sub testExecute() | |
Dim wbPath, wsName, wbName, searchString, resMatch, resIndex, resOne, wr1, wr2 As String | |
'Dim aRange As Range | |
'Set aRange = Application.InputBox(prompt:="Enter range", Type:=8) |