Good morning.
I have a variation of this code I use under command buttons on two userforms. It opens a folder based on a path specified in a text box on the userforms.
This works correctly opening the desired folder:
Using almost the same code on another userform opens an Explorer window to my Documents folder instead of the desired folder:
Not sure what I'm doing wrong here.
I have a variation of this code I use under command buttons on two userforms. It opens a folder based on a path specified in a text box on the userforms.
This works correctly opening the desired folder:
VBA Code:
Private Sub Reactivate_OPEN_Click()
Dim FolderPath As String
FolderPath = Me.Reactivate_Sub_Full_Name.Value
Call Shell("explorer.exe " & FolderPath, vbMaximizedFocus)
End Sub
Using almost the same code on another userform opens an Explorer window to my Documents folder instead of the desired folder:
VBA Code:
Private Sub cmdOpenFolder_Click()
Dim FolderPath As String
FolderPath = Me.SE_SubLotFolderPath.Value
Call Shell("explorer.exe " & FolderPath, vbMaximizedFocus)
End Sub
Not sure what I'm doing wrong here.
Last edited: