AbdulkareemAlhassni
New Member
- Joined
- Nov 16, 2018
- Messages
- 41
Dear all
i keep getting this error with the following code
Error ( 1004 VBA unable to set the formulaarray probery of the range class)
How can i fix it ?
i recorded the ( Writing the code then pasting it ) cuz i want it to automatically do it.
i keep getting this error with the following code
PHP:
Range("D3").Select Selection.FormulaArray = _
"=IF(INDEX('Raw Data for PR Dist'!R7C5:R100000C5,MATCH(1,('PR Dist SSD Report'!RC[-3]='Raw Data for PR Dist'!R7C1:R100000C1)*('PR Dist SSD Report'!RC[-2]='Raw Data for PR Dist'!R7C2:R100000C2),0))="""","""",INDEX('Raw Data for PR Dist'!R7C5:R100000C5,MATCH(1,('PR Dist SSD Report'!RC[-3]='Raw Data for PR Dist'!R7C1:R100000C1)*('PR Dist SSD Report'!RC[-2]='Raw Data for" & _ " PR Dist'!R7C2:R100000C2),0)))" & _ "" Range("E3").Select Selection.FormulaArray = _ "=IF(INDEX('Raw Data for PR Dist'!R7C3:R100000C3,MATCH(1,('PR Dist SSD Report'!RC[-4]='Raw Data for PR Dist'!R7C1:R100000C1)*('PR Dist SSD Report'!RC[-3]='Raw Data for PR Dist'!R7C2:R100000C2),0))="""","""",INDEX('Raw Data for PR Dist'!R7C3:R100000C3,MATCH(1,('PR Dist SSD Report'!RC[-4]='Raw Data for PR Dist'!R7C1:R100000C1)*('PR Dist SSD Report'!RC[-3]='Raw Data for" & _ " PR Dist'!R7C2:R100000C2),0)))" & _ "" Range("F3").Select Selection.FormulaArray = _ "=IF(INDEX('Raw Data for PR Dist'!R7C4:R100000C4,MATCH(1,('PR Dist SSD Report'!RC[-5]='Raw Data for PR Dist'!R7C1:R100000C1)*('PR Dist SSD Report'!RC[-4]='Raw Data for PR Dist'!R7C2:R100000C2),0))="""","""",INDEX('Raw Data for PR Dist'!R7C4:R100000C4,MATCH(1,('PR Dist SSD Report'!RC[-5]='Raw Data for PR Dist'!R7C1:R100000C1)*('PR Dist SSD Report'!RC[-4]='Raw Data for" & _ " PR Dist'!R7C2:R100000C2),0)))" & _ "" Range("J3").Select Selection.FormulaArray = _ "=IF(INDEX('Raw Data for PR Dist'!R7C35:R100000C35,MATCH(1,('PR Dist SSD Report'!RC[-9]='Raw Data for PR Dist'!R7C1:R100000C1)*('PR Dist SSD Report'!RC[-8]='Raw Data for PR Dist'!R7C2:R100000C2),0))="""","""",INDEX('Raw Data for PR Dist'!R7C35:R100000C35,MATCH(1,('PR Dist SSD Report'!RC[-9]='Raw Data for PR Dist'!R7C1:R100000C1)*('PR Dist SSD Report'!RC[-8]='Raw Data" & _ " for PR Dist'!R7C2:R100000C2),0)))" & _ ""
Error ( 1004 VBA unable to set the formulaarray probery of the range class)
How can i fix it ?
i recorded the ( Writing the code then pasting it ) cuz i want it to automatically do it.
Last edited: