Run time error 1004 (Method Range of Object _Global failed

%3CLINGO-SUB%20id%3D%22lingo-sub-1884591%22%20slang%3D%22en-US%22%3ERun%20time%20error%201004%20(Method%20Range%20of%20Object%20_Global%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1884591%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%26nbsp%3B%20%26nbsp%3BI%20am%20receiving%20a%20run%20time%20error%201004%20(method%20range%20of%20object%20_Global%20failed.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20is%20the%20code%20that%20is%20tripping%20the%20error%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ablake06_0-1605277495862.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F233407i00FDC59179C1FCB2%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22ablake06_0-1605277495862.png%22%20alt%3D%22ablake06_0-1605277495862.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EIt%20does%20not%20like%20the%20range%20that%20is%20currently%20being%20referenced.%26nbsp%3B%20How%20do%20I%20change%20the%20range%20and%20fix%20this%20error.%26nbsp%3B%20%26nbsp%3BAny%20help%20is%20much%20appreciated!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAaron%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1884591%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMacros%20and%20VBA%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1884638%22%20slang%3D%22en-US%22%3ERe%3A%20Run%20time%20error%201004%20(Method%20Range%20of%20Object%20_Global%20failed%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1884638%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F868105%22%20target%3D%22_blank%22%3E%40ablake06%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20Excel%2C%20click%20Name%20Manager%20on%20the%20Formulas%20tab%20of%20the%20ribbon%20and%20look%20for%20the%20definition%20of%20SourceFilePath.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hello,   I am receiving a run time error 1004 (method range of object _Global failed. 

 

Here is the code that is tripping the error:

ablake06_0-1605277495862.png

It does not like the range that is currently being referenced.  How do I change the range and fix this error.   Any help is much appreciated!

 

Aaron

1 Reply
Highlighted

@ablake06 

In Excel, click Name Manager on the Formulas tab of the ribbon and look for the definition of SourceFilePath.