How can I set the range using the users column letter input?

The user can input a column letter

How can I set the range if the user has already inputted a column letter
I have pasted my code here in which I set the range to the column letter that the user inputted up to its last row

Dim IntColumn
    
     ColumnLetter = Application.InputBox(prompt:="Enter Column Letter ", Type:=2)
    
    With ActiveSheet
     LastRow = .Cells.Find("*", , xlValues, xlWhole, xlByRows, xlPrevious, False).Row
    End With
    
    Set IntColumn = Range("ColumnLetter:LastRow")
    

Open in new window

NewBieSteffieInternAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
try:

Set IntColumn = Range(ColumnLetter & ":" & LastRow)

Open in new window

NewBieSteffieInternAuthor Commented:
I got a run time error 1004

What should I do?
Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
sorry, it should be as:

Set IntColumn = Range(ColumnLetter & LastRow)

Open in new window


without & ":"

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

Wayne Taylor (webtubbs)Commented:
When you have separate Column and Row variables, I generally find it easier to use and understand if I use the Cells method...

Set IntColumn = Cells(RowIndex:=LastRow, ColumnIndex:=ColumnLetter)

Open in new window


Note that ColumnIndex accepts either numbers or string (text) representations.
NewBieSteffieInternAuthor Commented:
This works !!!
Thanks
NewBieSteffieInternAuthor Commented:
@Ryan Chong Thank you!
@Wayne Taylor (webtubbs)
Your code works as well thank you
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VBA

From novice to tech pro — start learning today.