Within VBA, is there a way to select more than one cell not located next to a previously selected cell...just like using the control button within the Excel application?
For x = 1 To Ubound(MyArray)
For y = 1 To Ubound(MyOtherArray)
If MyArray(x) = MyOtherArray Then
Cells(y, 1).Select
Format those selected Cells
End If
Next
Next
This code looks like the logic works, however obviously only the last cell that meets the conditional criteria remains selected. I need to keep all the cells that meet the criteria selected. Any info regarding this is greatly appreciated.
Thank you,
Neil
For x = 1 To Ubound(MyArray)
For y = 1 To Ubound(MyOtherArray)
If MyArray(x) = MyOtherArray Then
Cells(y, 1).Select
Format those selected Cells
End If
Next
Next
This code looks like the logic works, however obviously only the last cell that meets the conditional criteria remains selected. I need to keep all the cells that meet the criteria selected. Any info regarding this is greatly appreciated.
Thank you,
Neil