ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Last cell with data in... (https://www.excelbanter.com/excel-programming/395801-last-cell-data.html)

Darin Kramer

Last cell with data in...
 
Hi there,

Im trying to apply borders to a series of cells in column P, that starts
in P2, and ends where the last bit of data is in that column. However
there may well be blanks in between...

Ideas?

Thanks!!!

D

*** Sent via Developersdex http://www.developersdex.com ***

Bob Phillips

Last cell with data in...
 
Set LastCell = Cells(Rows.Count,"P").End(xlUp)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Darin Kramer" wrote in message
...
Hi there,

Im trying to apply borders to a series of cells in column P, that starts
in P2, and ends where the last bit of data is in that column. However
there may well be blanks in between...

Ideas?

Thanks!!!

D

*** Sent via Developersdex http://www.developersdex.com ***




Darin Kramer

Last cell with data in...
 
Thanks!



*** Sent via Developersdex http://www.developersdex.com ***


All times are GMT +1. The time now is 07:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com