How to fix Run time error '1004' Method 'Range' of Object '_Global' failed when trying to generate vba upload file

Joseph Kimeu 0 Reputation points
2025-06-20T11:18:18.7566667+00:00

User's image

User's image

Microsoft 365 and Office Excel For business Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Barry Schwarz 3,746 Reputation points
    2025-06-23T08:20:12.53+00:00

    First, when you get the error, click on Debug to find the line of macro code that generated the error.

    Then show us that line plus enough preceding lines to establish some context. It would also help if yu show us the declarations for the variable in question.

    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.