ah2024_2024
New Member
- Joined
- Jun 18, 2024
- Messages
- 14
- Office Version
- 365
- Platform
- Windows
So, I've searched and searched and understand there are so weird things that I need to do when trying to copy and paste an array formula into VBA but man I just cannot get it. I actually have taken the coding out that I did have and now cannot remember even what I had to begin with. But below is what I have for the formula and it should copy the formula that starts in E9 and fill down to the last cell with data in A9.
wstarget.Activate
'getting call data for first day of the month
Range("E9").Select
Selection.FormulaArray = _
"=INDEX('[All Access Report - 2024 06.xlsx]Summary'!R2C[2]:R200C[2],MATCH(1,R6C[-1]='[All Access Report - 2024 06.xlsx]Summary'!R1C[1])*(RC1='[All Access Report - 2024 06.xlsx]Summary'!C2),0)"
Application.ScreenUpdating = True
wstarget.Activate
'getting call data for first day of the month
Range("E9").Select
Selection.FormulaArray = _
"=INDEX('[All Access Report - 2024 06.xlsx]Summary'!R2C[2]:R200C[2],MATCH(1,R6C[-1]='[All Access Report - 2024 06.xlsx]Summary'!R1C[1])*(RC1='[All Access Report - 2024 06.xlsx]Summary'!C2),0)"
Application.ScreenUpdating = True