CarlStephens
Board Regular
- Joined
- Sep 25, 2020
- Messages
- 128
- Office Version
- 2016
- Platform
- Windows
Hello All,
I have the below code that create a folder in a path as directed which pulls the information from cells F1 and F3 n the spreadsheet, and I want to change directory path to my One Drive. Can someone guide me as to what the code should look like to include my One Drive address. Thank you
One Dive Address:
Current code:
Sub NewFolder()
'
If Len(Dir([F3] & [F1], vbDirectory)) = 0 Then
MkDir [F3] & [F1]
MsgBox "Folder created in location"
Else
MsgBox "Folder already exists!"
End If
End Sub
I have the below code that create a folder in a path as directed which pulls the information from cells F1 and F3 n the spreadsheet, and I want to change directory path to my One Drive. Can someone guide me as to what the code should look like to include my One Drive address. Thank you
One Dive Address:
Current code:
Sub NewFolder()
'
If Len(Dir([F3] & [F1], vbDirectory)) = 0 Then
MkDir [F3] & [F1]
MsgBox "Folder created in location"
Else
MsgBox "Folder already exists!"
End If
End Sub