Niraj Baraili
Member
Hi Experts,
Could you please look into this code why i am getting Runtime error: 450.
wrong number of arguments or invalid property assignment.
Could you please look into this code why i am getting Runtime error: 450.
wrong number of arguments or invalid property assignment.
Code:
Sub Test()
sn = Sheets("sheet1").Cells(1).CurrentRegion
With CreateObject("Scripting.Dictionary")
For j = 1 To UBound(sn)
.Item(sn(j, 1)) = Application.Index(sn, j, 0)
Next j
'write item to worksheet
Sheets("sheet1").Cells(1, 4).Resize(.Count, UBound(sn, 2)) = Application.Index(.Item, 0, 0)
End With
End Sub