PC Review


Reply
Thread Tools Rate Thread

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

 
 
rub
Guest
Posts: n/a
 
      29th Nov 2006
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.

 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      29th Nov 2006
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
 
Reply With Quote
 
rub
Guest
Posts: n/a
 
      29th Nov 2006
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


 
Reply With Quote
 
John Smith
Guest
Posts: n/a
 
      29th Nov 2006
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.
>

 
Reply With Quote
 
rub
Guest
Posts: n/a
 
      29th Nov 2006
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.
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Select column in VB based on variable James Microsoft Excel Programming 2 9th Oct 2008 02:36 PM
select cell by variable name Adam Microsoft Excel Misc 6 20th May 2008 07:54 PM
select the range with the cell's position is a variable. youu917@gmail.com Microsoft Excel Programming 2 14th Mar 2008 02:46 AM
Is is possible to have a macro select a cell and return the address for use as a variable? JasonK Microsoft Excel Programming 1 21st Mar 2006 01:08 PM
Linking a cell to another workbook cell based on a variable name =?Utf-8?B?QnJpYW4=?= Microsoft Excel Misc 6 1st Jun 2005 11:54 PM


Features
 

Advertising
 

Newsgroups
 


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