Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2004
    Location
    Swindon, UK
    Posts
    86

    Unanswered: Create a Folder from code!

    HI, does anyone know how to create a folder from code? if at all possible.

  2. #2
    Join Date
    Feb 2004
    Location
    Swindon, UK
    Posts
    86
    well that was easier than i thought, and for anyone else that wants to know...

    Private Sub DBArchive_Click()

    MkDir ("C:\DatabaseFiles\Archive")

    End Sub

  3. #3
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1

    Lightbulb

    You have to check whether the folder is already exists or not using the DIR function

    Because when you run your code for the second time you might get an error message telling you that the directory exists

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •