Hello,
I have the below code and I want to add more to theworksheet change code.
Current Code I have
Private Sub Worksheet_SelectionChange(ByVal Target AsRange)
'my formula on worksheet =INDEX('WharfSchedules'!B:B,MATCH(Data!AO59&Data!AQ59,'Wharf Schedules'!C:C&'WharfSchedules'!E:E,0))
Range("AL5").FormulaArray ="=IFERROR(INDEX('Wharf Schedules'!B:B,MATCH('Data'!AO5&AQ5,'WharfSchedules'!C:C&'Wharf Schedules'!E:E,0)),"""")"
With Range("AL5:AL" & Cells(Rows.Count,"B").End(xlUp).Row)
.FillDown
.Value = .Value
End With
End Sub
Want to add more code like below to auto fill more columns.I’m not sure how to add it to what I already have.
Range("AM5").FormulaArray ="=IFERROR(INDEX('Wharf Schedules'!G:G,MATCH('Data'!AO5&AQ5,'WharfSchedules'!C:C&'Wharf Schedules'!E:E,0)),"""")"
With Range("AL5:AL" & Cells(Rows.Count,"B").End(xlUp).Row)
.FillDown
.Value = .Value
Dale
I have the below code and I want to add more to theworksheet change code.
Current Code I have
Private Sub Worksheet_SelectionChange(ByVal Target AsRange)
'my formula on worksheet =INDEX('WharfSchedules'!B:B,MATCH(Data!AO59&Data!AQ59,'Wharf Schedules'!C:C&'WharfSchedules'!E:E,0))
Range("AL5").FormulaArray ="=IFERROR(INDEX('Wharf Schedules'!B:B,MATCH('Data'!AO5&AQ5,'WharfSchedules'!C:C&'Wharf Schedules'!E:E,0)),"""")"
With Range("AL5:AL" & Cells(Rows.Count,"B").End(xlUp).Row)
.FillDown
.Value = .Value
End With
End Sub
Want to add more code like below to auto fill more columns.I’m not sure how to add it to what I already have.
Range("AM5").FormulaArray ="=IFERROR(INDEX('Wharf Schedules'!G:G,MATCH('Data'!AO5&AQ5,'WharfSchedules'!C:C&'Wharf Schedules'!E:E,0)),"""")"
With Range("AL5:AL" & Cells(Rows.Count,"B").End(xlUp).Row)
.FillDown
.Value = .Value
Dale