Hi,
I know use Range("w65536").End(xlUp).Select to direct last row, but how to get last two row value?
Thanks
Hi,
I know use Range("w65536").End(xlUp).Select to direct last row, but how to get last two row value?
Thanks
Last edited by poppypoppy; 06-09-2010 at 10:38 AM.
Maybe:
Please Login or Register to view this content.
Not sure what you are doing but it's worth noting it's almost never necessary to use Select in VBA code.
Dom
"May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."
Use code tags when posting your VBA code: [code] Your code here [/code]
Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.
Domski is right. IF you look at the next thing you were going to do after selecting, that line of code was probably going to start with Selection..... so you can usually just merge all those lines together at the Select/Selection overlap.
Please Login or Register to view this content.
In your code, if the next thing you were going to is copy the entire row, take off the select and immediately copy the entire row:
Please Login or Register to view this content.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks