Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default cell address

Hi,
I have a macro that does some stuff and selects a cell using
cell.address
But the cell I want is then actually 1 row down and 1 column to the
left.

Because cell address is a string, I can't go Range("A" & myCell + 1),
so what should I do?

Thanks
Kate

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default cell address

Range("A" & myCell).Offset(1,1)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Kate" wrote in message
oups.com...
Hi,
I have a macro that does some stuff and selects a cell using
cell.address
But the cell I want is then actually 1 row down and 1 column to the
left.

Because cell address is a string, I can't go Range("A" & myCell + 1),
so what should I do?

Thanks
Kate



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default cell address

Never could tell left from right <g

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Don Guillett" wrote in message
...
Bob and I were both wrong
.offset(1,-1)

--
Don Guillett
SalesAid Software

"Kate" wrote in message
oups.com...
Hi,
I have a macro that does some stuff and selects a cell using
cell.address
But the cell I want is then actually 1 row down and 1 column to the
left.

Because cell address is a string, I can't go Range("A" & myCell + 1),
so what should I do?

Thanks
Kate







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default cell address

Yeah, I figured :-)

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
=HYPERLINK("#"&CELL("address", ADDRESS(MATCH(VALUE(B3),QuoteNotes, sarah Excel Worksheet Functions 2 February 17th 09 02:59 PM
=HYPERLINK("#"&CELL("address", ADDRESS(MATCH(VALUE(B3),Range ... ? sarah Excel Worksheet Functions 0 February 17th 09 02:06 PM
Return cell address of a cell based on contents of cell. Danny Excel Worksheet Functions 4 November 15th 08 03:11 AM
find last cell in range with data, display cell address sevi61 Excel Worksheet Functions 14 October 29th 07 08:36 PM
How to create table of cell names with the name's cell address WildwoodEngr Excel Discussion (Misc queries) 1 October 26th 06 02:52 PM


All times are GMT +1. The time now is 10:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"