Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Re : MS Excel’s Offset Property
The following example selects the cell three rows down from and one column to the right of the cell in the upper-left corner of the current selection. Worksheets("sheet1").Activate Selection.Offset(3, 1).Range("A1").Select The question is, what is the significance of dotting with Range("A1") ? Regards. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It's just a waste of cycles - using the Range property of a range
offsets the range by an amount equivalent to the offset of the reference from A1. Since I can't even parse that sentence at this hour, here's an example, assume the Selection is at F8. Then Selection.Offset(3,1).Select selects G11 Selection.Offset(3, 1).Range("A1").Select also selects G11 Selection.Offset(3, 1).Range("B1").Select selects H11 Selection.Offset(3, 1).Range("A2").Select selects G12 Selection.Offset(3, 1).Range("B2").Select selects H12 In article , (TKT-Tang) wrote: Re : MS Excel’s Offset Property The following example selects the cell three rows down from and one column to the right of the cell in the upper-left corner of the current selection. Worksheets("sheet1").Activate Selection.Offset(3, 1).Range("A1").Select The question is, what is the significance of dotting with Range("A1") ? Regards. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
But it does resize the selection to exactly one cell. If you didn't have that,
then the new selection would be the same size as the starting selection. TKT-Tang wrote: Re : MS Excel’s Offset Property The following example selects the cell three rows down from and one column to the right of the cell in the upper-left corner of the current selection. Worksheets("sheet1").Activate Selection.Offset(3, 1).Range("A1").Select The question is, what is the significance of dotting with Range("A1") ? Regards. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Intellectual Property of an excel document | Excel Discussion (Misc queries) | |||
Excel property management template | Excel Discussion (Misc queries) | |||
i need an excel template for property management | Excel Discussion (Misc queries) | |||
changing property of a picture that is already pasted on excel | New Users to Excel | |||
I need a Excel template for property management | Excel Discussion (Misc queries) |