Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
have a look at
..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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yeah, I figured :-)
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
=HYPERLINK("#"&CELL("address", ADDRESS(MATCH(VALUE(B3),QuoteNotes, | Excel Worksheet Functions | |||
=HYPERLINK("#"&CELL("address", ADDRESS(MATCH(VALUE(B3),Range ... ? | Excel Worksheet Functions | |||
Return cell address of a cell based on contents of cell. | Excel Worksheet Functions | |||
find last cell in range with data, display cell address | Excel Worksheet Functions | |||
How to create table of cell names with the name's cell address | Excel Discussion (Misc queries) |