run-time error 1004 - Why?

Woftae

New Member
Joined
Feb 10, 2018
Messages
24
Hi one & all, I have used this site many a time and it has helped me a lot, but this is my first post so if I have posted it incorrectly, I'm sorry.
I am also aware that there is probably a smarter way to do this code, but as I'm self taught it usually a matter of trial and error for me and
I'm tired of chasing my tail on this bit of VBA code, Can anybody tell me why this VBA code triggers a run-time error 1004

wshT.Range("I" & i).Formula = "=IF(LEN(CONCATENATE('SEO String Fillers'!C3,"" "",C" & i & ",'SEO String Fillers'!D3,"" "",D" & i & ","" "",B" & i & _
","" "",'SEO String Fillers'!E3,'SEO String Fillers'!F3<='SEO String Fillers'!B3,CONCATENATE('SEO String Fillers'!C3,"" "",C" & i & ",'SEO String Fillers'!D3,"" "",D" & i & _
","" "",B" & i & ","" "",'SEO String Fillers'!E3,'SEO String Fillers'!F3),IF(LEN(CONCATENATE('SEO String Fillers'!C3,"" "",C" & i & ",'SEO String Fillers'!D3,"" "",B" & i & _
","" "",'SEO String Fillers'!E3,'SEO String Fillers'!F3))<='SEO String Fillers'!B3,CONCATENATE('SEO String Fillers'!C3,"" "",C" & i & ",'SEO String Fillers'!D3,"" "",B" & i & _
","" "",'SEO String Fillers'!E3,'SEO String Fillers'!F3),IF(LEN(CONCATENATE('SEO String Fillers'!C3,"" "",C" & i & ",'SEO String Fillers'!D3,"" "",B" & i & _
","" "",'SEO String Fillers'!E3))<='SEO String Fillers'!B3,CONCATENATE('SEO String Fillers'!C3,"" "",C" & i & ",'SEO String Fillers'!D3,"" "",B" & i & _
","" "",'SEO String Fillers'!E3),IF(LEN(CONCATENATE('SEO String Fillers'!C3,"" "",'SEO String Fillers'!G3,"" "",B" & i & _
","" "",'SEO String Fillers'!E3))<='SEO String Fillers'!B3,CONCATENATE('SEO String Fillers'!C3,"" "",'SEO String Fillers'!G3,"" "",B" & i & _
","" "",'SEO String Fillers'!E3),CONCATENATE('SEO String Fillers'!C3,"" "",'SEO String Fillers'!G3,"" "",B" & i & ")))))"
 
Last edited by a moderator:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
1004 normally indicates something is misspelled or missing

If you use option explicit as the very first line of the sub and then compile that can help identify what might be an issue
 
Upvote 0
1004 normally indicates something is misspelled or missing

If you use option explicit as the very first line of the sub and then compile that can help identify what might be an issue

Thank you mole999 I will certainly give it a go.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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