troubleshooting Question

Create Folder in Visual Basic

Avatar of filtrationproducts
filtrationproductsFlag for United States of America asked on
Microsoft AccessVisual Basic Classic
12 Comments2 Solutions1441 ViewsLast Modified:
I currently use the code inside a visual basic application to create the folder in the format below;

V:\7.3\F730000_Hyperlinks\PMR-1_Documentation\

I would like it to create the Documentation folder inside the PMR-1 instead like this;

V:\7.3\F730000_Hyperlinks\PMR-1\Documentation\

Is this possible? I attached the code I use now below.
Private Sub Command99_Click()
        Dim strPath As String
    Dim strFolderName As String
    Dim FolderName As String
 
strPath = "V:\7.3\F730000_Hyperlinks\"
strFolderName = "PMR-" & Me.ID_PMR.Value & "_CustomerCommunication"
FolderName = (strPath & strFolderName)
 
If Len(Dir(FolderName, vbDirectory)) = 0 Then
    MkDir FolderName
    Call Shell("explorer.exe " & FolderName, 1)
Else
    Call Shell("explorer.exe " & FolderName, 1)
End If
    
End Sub
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros