Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
if cell a1 and b1 are merged and c1 and d1 are merged. if target = c1, then target.offset(0,-1) refer to b1 not a1 and b1 merged area. How can I do it? Clara -- thank you so much for your help |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Clara,
Target.Offset(0, -1).MergeArea.Cells(1, 1).Value HTH, Bernie MS Excel MVP "clara" wrote in message ... Hi all, if cell a1 and b1 are merged and c1 and d1 are merged. if target = c1, then target.offset(0,-1) refer to b1 not a1 and b1 merged area. How can I do it? Clara -- thank you so much for your help |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Bernie,
Let's go further, if A1 And B1 , c1 ANd D1, E1 And F1 are merged seperately, then target is on E1 And F1 mearged area, could you using target.offset(0,-1).offset(0,-1) to refer to A1 and B1 area ? Clara -- thank you so much for your help "Bernie Deitrick" wrote: Clara, Target.Offset(0, -1).MergeArea.Cells(1, 1).Value HTH, Bernie MS Excel MVP "clara" wrote in message ... Hi all, if cell a1 and b1 are merged and c1 and d1 are merged. if target = c1, then target.offset(0,-1) refer to b1 not a1 and b1 merged area. How can I do it? Clara -- thank you so much for your help |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Clara,
Target.Offset(0, -1).MergeArea.Cells(1, 1).Offset(0, -1).MergeArea.Cells(1, 1).Value HTH, Bernie MS Excel MVP "clara" wrote in message ... Hi Bernie, Let's go further, if A1 And B1 , c1 ANd D1, E1 And F1 are merged seperately, then target is on E1 And F1 mearged area, could you using target.offset(0,-1).offset(0,-1) to refer to A1 and B1 area ? Clara -- thank you so much for your help "Bernie Deitrick" wrote: Clara, Target.Offset(0, -1).MergeArea.Cells(1, 1).Value HTH, Bernie MS Excel MVP "clara" wrote in message ... Hi all, if cell a1 and b1 are merged and c1 and d1 are merged. if target = c1, then target.offset(0,-1) refer to b1 not a1 and b1 merged area. How can I do it? Clara -- thank you so much for your help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Target.Offset(0, 36).Value Help | Excel Discussion (Misc queries) | |||
what does target.offset(0,-1).select mean here? | Excel Programming | |||
Target.Address Doesn't Work in Excel 97? | Excel Programming | |||
Assumed Lunch | Excel Discussion (Misc queries) | |||
Target Offset? | Excel Programming |