how to fix error 52 in excel

Sandeep Singh 25 Reputation points
2023-09-08T11:48:56.23+00:00

I am getting an error 52 while preparing a .json file by using an excel formula. how do I fix it?

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,883 questions
{count} votes

Accepted answer
  1. Tanay Prasad 2,120 Reputation points
    2023-09-11T06:30:33.1966667+00:00

    Hi,

    This error can occur if Excel encounters an issue related to the file name or file path.

    Here are some methods that you can try-

    1. File locking can prevent Excel from creating or overwriting the file. Check if the file is locked by another process or application.
    2. Try specifying a different folder location (e.g., your desktop) to see if the issue is specific to the current directory.
    3. Ensure that you have the necessary permissions to create files in the specified directory.

    Also, refer to this thread- https://stackoverflow.com/questions/25064160/run-time-error-52-bad-file-name-or-number

    Best Regards.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Emi Zhang-MSFT 24,986 Reputation points Microsoft Vendor
    2023-09-11T06:26:48.1866667+00:00

    Hi,

    Based on the error 52, this problem is related to the file name, please refer to this support to get more information:

    https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/bad-file-name-or-number-error-52

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.