Forum Discussion

Michael_2025's avatar
Michael_2025
Copper Contributor
May 13, 2022
Solved

Method ‘Range’ of object ‘_Global’ failed

Excel Macro Error Run-time error ‘1004’ Method ‘Range’ of object ‘_Global’ failed I have written a series of macros to import and analyze csv files to track the amount of time it takes for customer...
  • HansVogelaar's avatar
    HansVogelaar
    May 16, 2022

    Michael_2025 

    Thank you. The problem is that the query in Step 1 hasn't completely been refreshed yet when Step 2 is run. To avoid this, change the line

            .Refresh BackgroundQuery:=True

    near the end of ImportRsStaffTechActivityRev2 to

            .Refresh BackgroundQuery:=False
    

     

Resources