ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Leftmost and Rightmost Cell (https://www.excelbanter.com/excel-programming/294448-leftmost-rightmost-cell.html)

Lena[_3_]

Leftmost and Rightmost Cell
 
How can i get the value of the rightmost/leftmost cell
from a specific column if the value's not blank ??

Thanks
Lena

Bob Phillips[_6_]

Leftmost and Rightmost Cell
 
Do you mean a specific row. This is for row 2

cells(2,"A").end(xltoright).value

cells(2,columns.count).end(xltoleft).value

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Lena" wrote in message
...
How can i get the value of the rightmost/leftmost cell
from a specific column if the value's not blank ??

Thanks
Lena




Brad Vontur[_2_]

Leftmost and Rightmost Cell
 
Not sure I understand

What classifies a cell as being the rightmost or leftmost from a single column?

-Brad

Tom Ogilvy

Leftmost and Rightmost Cell
 
A specific column only has a centermost cell.

Why not try restating your question. What are you trying do to. Are you
looking for the visible range? Specific row?

--
Regards,
Tom Ogilvy


"Lena" wrote in message
...
How can i get the value of the rightmost/leftmost cell
from a specific column if the value's not blank ??

Thanks
Lena





All times are GMT +1. The time now is 07:11 AM.

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