ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   I am trying to select a new cell whose row address is based on a variable (https://www.excelbanter.com/excel-programming/378393-i-am-trying-select-new-cell-whose-row-address-based-variable.html)

rub

I am trying to select a new cell whose row address is based on a variable
 
I getting an error on the following line:

Range(Cells(intRow1 - 1, "aa")).Select

I want to select a cell located at row intRow1 and column "AA"

any help would be appreciated.


Dave Peterson

I am trying to select a new cell whose row address is based on avariable
 
cells(introw1,"AA").select

Did you mean introw1-1 or introw1?



rub wrote:

I getting an error on the following line:

Range(Cells(intRow1 - 1, "aa")).Select

I want to select a cell located at row intRow1 and column "AA"

any help would be appreciated.


--

Dave Peterson

rub

I am trying to select a new cell whose row address is based on a variable
 
Thanks Dave

I did mean intRow1-1


Dave Peterson wrote:
cells(introw1,"AA").select

Did you mean introw1-1 or introw1?



rub wrote:

I getting an error on the following line:

Range(Cells(intRow1 - 1, "aa")).Select

I want to select a cell located at row intRow1 and column "AA"

any help would be appreciated.


--

Dave Peterson



John Smith

I am trying to select a new cell whose row address is based ona variable
 
try this:

Cells(intRow1 - 1, "aa").Select


rub wrote:
I getting an error on the following line:

Range(Cells(intRow1 - 1, "aa")).Select

I want to select a cell located at row intRow1 and column "AA"

any help would be appreciated.


rub

I am trying to select a new cell whose row address is based on a variable
 
thanks John


John Smith wrote:
try this:

Cells(intRow1 - 1, "aa").Select


rub wrote:
I getting an error on the following line:

Range(Cells(intRow1 - 1, "aa")).Select

I want to select a cell located at row intRow1 and column "AA"

any help would be appreciated.




All times are GMT +1. The time now is 06:53 AM.

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