vbdirectory

  1. B

    VBA Get the Names of All the Sub-Folders within a Folder

    Hello, I am looking for some help with my Code. I am getting a File not Found error whenever I try to use anything but the root directory "C:" for the PathName. Thanks, CB Sub GetSubFolderNames() Dim FileName As String Dim PathName As String PathName = "C:\Temp" FileName = Dir(PathName...
  2. P

    Dim ws As Worksheet issue

    I'm receiving an error message ... (Compile error: Duplicate declaration in current scope) ... when I run some code that has 13 components, but I believe it's the following two components that are the issue ... one of the components copies a template sheet multiple times and renames them...
  3. A

    ByRef Argument Type Mismatch in Path Creation Function

    Hi all, I have two functions that I routinely use to check for the existence of paths to files ... I am attempting to debug another sub, and so was trying to compile my entire project in the hope of finding flaws in my code. In the block below, I am receiving a warning "Compile Error: ByRef...
  4. D

    Create New Word document XML format

    Good Day All how to create new Word 2010 XML Format and later by create folders are need and fill with required XML thanks Sub creatWordXml() Dim FilePath As String, docPropsFolder As String, relsFolder As String, wordFolder As String, relsFolder1 As String, themeFolder As String...
  5. L

    Nesting Multiple Tests Of MkDir's?

    Hi, If I wanted to test if any of these filepaths exist and if not to create, what would be the simplest way to nest create? e.g. S:\Folder1\Folder2\Folder3\Folder4 What I've been using is.. but can it be shortened? If Len(Dir("S:\Folder1\", vbDirectory)) = 0 Then MkDir ("S:\Folder1\"...
  6. S

    VBA Directory Cycle

    I'm trying to create a two-dimensional loop that loops through a file path that puts the folder name in one column, and then the files in that folder in the second column. The output should look like this: <tbody> Folder 1 File name 1 Folder 1 File name 2 Folder 1 File name 3 Folder 2...

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top