Avatar of AFGPHXExcel
AFGPHXExcel

asked on 

How to make a new Directory?

I am trying to create a new folder and I am getting a run-time errror 76: Path not found.

RCOTSaveLoc = "c:\LogcapRequests\" & [c_NameGen_PPR].Value & "\"
        If Len(Dir(RCOTSaveLoc, vbDirectory)) = 0 Then
        MkDir RCOTSaveLoc
        End If

Also, RCOTSaveLOC= "c:\LogcapRequests\FLR-11-0005-CJ05-228-143217-R0\". I've tried with and without the "\" at the end. Any help would be much appreciated.
Microsoft Excel

Avatar of undefined
Last Comment
AFGPHXExcel
Avatar of MINDSUPERB
MINDSUPERB
Flag of Kuwait image

AFGPHXExcel,

Does FLR-11-0005-CJ05-228-143217-R0 directory already existed under c:LogcapRequests\?

Ed
Avatar of AFGPHXExcel
AFGPHXExcel

ASKER

No it does not.
ASKER CERTIFIED SOLUTION
Avatar of MINDSUPERB
MINDSUPERB
Flag of Kuwait image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of AFGPHXExcel
AFGPHXExcel

ASKER

Thanks. I found out that I had to create the Logcaprequests with Mkdir and then c:\LogcapRequests\FLR-11-0005-CJ05-228-143217-R0\ with mkdir.
Microsoft Excel
Microsoft Excel

Microsoft Excel topics include formulas, formatting, VBA macros and user-defined functions, and everything else related to the spreadsheet user interface, including error messages.

144K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo