A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
Thanks for picking up on the typing error (TheRwo)
XLToLeft was correct and the change you have made is making the code select all the columns. Try it like this
Sub Select_Range()
Dim lastrow As Long, LastCol As Long
Dim TheRow As Long, TheCol As Long
Dim StartCell As String
LastCol = ActiveSheet.Cells(1, Columns.Count).End(xlToLeft).Column
lastrow = Cells(Rows.Count, LastCol).End(xlUp).Row
StartCell = InputBox("Enter Start cell")
TheRow = Range(StartCell).Row
TheCol = Range(StartCell).Column
ActiveSheet.Range(Cells(TheRow, TheCol), Cells(lastrow, LastCol)).Select
End Sub