{"id":352,"date":"2015-11-16T06:54:19","date_gmt":"2015-11-16T06:54:19","guid":{"rendered":"http:\/\/99excel.com\/?p=352"},"modified":"2021-05-14T16:08:49","modified_gmt":"2021-05-14T16:08:49","slug":"vba-code-to-create-folder-or-directory-with-name-and-condition","status":"publish","type":"post","link":"https:\/\/99excel.com\/home\/vba-code-to-create-folder-or-directory-with-name-and-condition\/","title":{"rendered":"Vba code to create folder or directory with name and condition"},"content":{"rendered":"<p>Following Excel Vba Code to create\u00a0the\u00a0folder\u00a0in a directory if path is not exists.<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n<p>Sub Create_Local_folder()<br \/>\nSet fs = CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<br \/>\nAttendanceLocalFolder = &#8220;C:&#8221; &amp; &#8220;&#8221; &amp; &#8220;MYNEWFOLDER&#8221;<br \/>\nIf fs.FolderExists(AttendanceLocalFolder) = False Then fs.CreateFolder AttendanceLocalFolder<\/p>\n<p>&nbsp;<\/p>\n<p>End Sub<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following Excel Vba Code to create\u00a0the\u00a0folder\u00a0in a directory if path is not exists. &nbsp; &nbsp; Sub Create_Local_folder() Set fs = CreateObject(&#8220;Scripting.FileSystemObject&#8221;) AttendanceLocalFolder = &#8220;C:&#8221; &amp; &#8220;&#8221; &amp; &#8220;MYNEWFOLDER&#8221; If fs.FolderExists(AttendanceLocalFolder) = False Then fs.CreateFolder AttendanceLocalFolder &nbsp; End Sub<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[],"tags":[],"class_list":["post-352","post","type-post","status-publish","format-standard","hentry"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/99excel.com\/home\/wp-json\/wp\/v2\/posts\/352","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/99excel.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/99excel.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/99excel.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/99excel.com\/home\/wp-json\/wp\/v2\/comments?post=352"}],"version-history":[{"count":1,"href":"https:\/\/99excel.com\/home\/wp-json\/wp\/v2\/posts\/352\/revisions"}],"predecessor-version":[{"id":881,"href":"https:\/\/99excel.com\/home\/wp-json\/wp\/v2\/posts\/352\/revisions\/881"}],"wp:attachment":[{"href":"https:\/\/99excel.com\/home\/wp-json\/wp\/v2\/media?parent=352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/99excel.com\/home\/wp-json\/wp\/v2\/categories?post=352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/99excel.com\/home\/wp-json\/wp\/v2\/tags?post=352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}