Run-time 1004 error: Application-defined or object-defined error.

charlesrobinsonhelp

New Member
Joined
May 3, 2015
Messages
9
When I ran my maco I received a Run-time 1004 error: Application-defined or object-defined error. Do you know what is causing this error/ how to fix it?

get_file.cgi
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
The 1004 error is normally related to user input. Something misspelled, missing punctuation (comma, period, parentheses), etc. or too much punctuation.
 
Upvote 0
If you post the parts of the macro that errors, you can get much better analysis and advice. Just copy it into the thread window, highlight it and click one of the tag helper buttons below to set the code tags.
 
Last edited:
Upvote 0
If Range("i14") = "EMEA" Then
Range("J14").Select
ActiveCell.FormulaR1C1 = "0"
Range("K14").Select
ActiveCell.FormulaR1C1 = _
"=SUMIF('Raw data'!C1,CONCATENATE(R8C,""-"",R1C[-3],""-"",R2C8,""-"",R[26]C4),INDEX('Raw data'!C1:C17,0,MATCH(R5C[1],'Raw data'!R2C1:R2C17,0)))+SUMIF('Raw data'!C1,CONCATENATE(R8C,""-"",R1C[-3],""-"",R2C8,""-"",R[31]C4),INDEX('Raw data'!C1:C17,0,MATCH(R[-9]C[3],'Raw data'!R2C1:R2C17,0)))+SUMIF('Raw data'!C1,CONCATENATE(R[-6]C,""-"",R[-13]C[-3],""-"",R[-12]C[-3],""-""" & _
"[-8]),INDEX('Raw data'!C1:C17,0,MATCH(R[-9]C[3],'Raw data'!R2C1:R2C17,0)))+SUMIF('Raw data'!C1,CONCATENATE(R[-6]C,""-"",R[-13]C[-3],""-"",R[-12]C[-3],""-"",R[-9]C[-8]),INDEX('Raw data'!C1:C17,0,MATCH(R[-9]C[3],'Raw data'!R2C1:R2C17,0)))"
Range("L14").Select
ActiveCell.FormulaR1C1 = _
"=SUMIF('Raw data'!C1,CONCATENATE(R8C,""-"",R1C[-4],""-"",R2C8,""-"",R[26]C4),INDEX('Raw data'!C1:C18,0,MATCH(R9C,'Raw data'!R2C1:R2C18,0)))"
Range("M14").Select
ActiveCell.FormulaR1C1 = "=SUM(RC[-3]:RC[-1])"
 
Upvote 0

Forum statistics

Threads
1,226,739
Messages
6,192,740
Members
453,755
Latest member
IQBS

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top