Hi All
I need some help with this code. I’d like to be able to multi select various cells in row 7 and get the code to select the respective columns. Also it appears that code only selects the column to the last cell with content, I’d like it to select the column/s to say row 500
Sub SelectColumn()
‘Updateby20140510
Dim xColIndex As Integer
Dim xRowIndex As Integer
xIndex = Application.ActiveCell.Column
xRowIndex = Application.ActiveSheet.Cells(Rows.Count, xIndex).End(xlUp).Row
Range(Cells(7, xIndex), Cells(xRowIndex, xIndex)).Select
‘Selection.Delete Shift:=xlToLeft
End Sub
I hope that makes sense – any help/suggestions would be much appreciated
Regards