Closed Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    12-17-2008
    Location
    edinburgh, uk
    Posts
    46

    runtime error 52 bad file name or number

    I'm getting runtime error 52 bad file name or number at the following bit of code:

    Code:
    If Len(Dir("\\shared.sharepoint.test.net\Reports\" & Format(Date, "mm-yyyy"), vbDirectory)) = 0 Then
        MkDir "\\shared.sharepoint.test.net\Reports\" & Format(Date, "mm-yyyy")
    End If
    This is only happening on one PC, the rest all work ok?

  2. #2
    Registered User
    Join Date
    05-19-2009
    Location
    Chennai
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: runtime error 52 bad file name or number

    Hi,

    I am also facing the same problem.
    This occurs only in one Machine.
    It was working fine untill the macro execution was interuppted due to power loss. After that the VBA code started to throw "runtime error 52 bad file name or number" in that Machine.

    Regards,
    A Shyamala

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.2.0