I know this Access, but....

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JohnD
    New Member
    • Sep 2006
    • 27

    I know this Access, but....

    I am trying to make a new directory in Excel with VBA. My code is pasted below.



    Public Sub NewFolder()

    MkDir "C:\Study"








    End Sub

    thanks
  • PEB
    Recognized Expert Top Contributor
    • Aug 2006
    • 1418

    #2
    And when you run this from Vb what appears? Is there any problems?

    :)

    Comment

    • JohnD
      New Member
      • Sep 2006
      • 27

      #3
      A code error box appears, I am doing this from a school computer

      Comment

      • PEB
        Recognized Expert Top Contributor
        • Aug 2006
        • 1418

        #4
        What is the error? Maybe the folder exists?

        Comment

        Working...