Jeg ville sætte c:\projekter ind således:
Public Sub OpenFolder()
Dim sPath As String, sFolder As String, sStartWith As String
Dim sSubPath() As String
sPath = "c:\projekter\" & Sheets("Liste").Range("M1").Value
sSubPath = Split(sPath, "\")
sStartWith = LCase(sSubPath(UBound(sSubPath)))
sPath = Left(sPath, Len(sPath) - Len(sStartWith))
sFolder = Dir(sPath, vbDirectory)
Do While sFolder > ""
If Not sFolder Like ".*" Then
If (GetAttr(sPath & sFolder) And vbDirectory) = vbDirectory Then
If sStartWith = LCase(Left(sFolder, Len(sStartWith))) Then
Shell "Explorer.exe /n,/e," & sPath & sFolder, vbNormalFocus
Exit Do
End If
End If
End If
sFolder = Dir
Loop
End Sub
God fornøjelse med det /Flemming