Option Explicit Dim swApp As Object Dim swModel As ModelDoc2 Dim fileSystem As New FileSystemObject Sub main() Dim pathName As String Dim folderPath As String Dim cmd As String Set swApp = Application.SldWorks Set swModel = swApp.ActiveDoc If swModel Is Nothing Then MsgBox ("Otwórz jakiœ model") Exit Sub End If pathName = swModel.GetPathName folderPath = fileSystem.GetParentFolderName(pathName) & "\" cmd = "C:\WINDOWS\explorer.exe " & folderPath Shell cmd, vbNormalFocus End Sub