ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   VB Code Question Range( (https://www.excelbanter.com/excel-programming/372626-vbulletin-code-question-range.html)

Sandy

VB Code Question Range(
 
is there a way to addreess a cell using the column number instead of the
column letter?

Instead of Range("A2").value .... Range(? & 2).value

Thank you

Ron de Bruin

VB Code Question Range(
 
Hi Sandy

You can use Cells
Cells(row,column)

Sheets("Sheet1").Cells(1, 2).Value



--
Regards Ron de Bruin
http://www.rondebruin.nl



"Sandy" wrote in message ...
is there a way to addreess a cell using the column number instead of the
column letter?

Instead of Range("A2").value .... Range(? & 2).value

Thank you




stevebriz

VB Code Question Range(
 
cells(?,2).value
Sandy wrote:
is there a way to addreess a cell using the column number instead of the
column letter?

Instead of Range("A2").value .... Range(? & 2).value

Thank you



Tom Ogilvy

VB Code Question Range(
 
To be consistent with your example, I think steve meant

cells(2,?) where, for column A, ? would be 1.

--
Regards,
Tom Ogilvy

"stevebriz" wrote:

cells(?,2).value
Sandy wrote:
is there a way to addreess a cell using the column number instead of the
column letter?

Instead of Range("A2").value .... Range(? & 2).value

Thank you





All times are GMT +1. The time now is 09:14 AM.

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