Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Newsgroups
Microsoft Excel
Microsoft Excel Programming
Last Column and Last Row
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Guest, post: 10582706"] I'm trying to select from A2, all the way to the last column down to the last row of the current data set to do some formatting. This code is not working because I am unable to find a way to select that range once I have last column and lastrow set. Could I get some assistance with that? THANKS!!! Dim LastColumn As Long LastColumn = Range("A1").End(xlToRight).Column LastRow = Cells(Rows.Count, "A").End(xlUp).Row ' THIS part is incorrect Range("A2" & LastColumn & LastRow).Select [/QUOTE]
Verification
Post reply
Home
Forums
Newsgroups
Microsoft Excel
Microsoft Excel Programming
Last Column and Last Row
Top