98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » excel+training - Offset
excel+training - Offset
Resolved · Low Priority · Version Standard
Belinda has attended:
Excel VBA Intro Intermediate course
Offset
How does offset work and is it more efficient than using using variables to pick out cells?
RE: offset
Belinda
The Offset property of a range is most commonly seen when a macro is recorded using Relative reference.
It enable the user to manipulate a cell based off the location of the active cell.
The syntax is
Range.OffSet (RowOffset, ColumnOffset)
eg
Range ("A1").OffSet (4,5)
If you need to know at any given moment the cell you are manipulating then you need to use a variable as a indicator of the cells address.
eg
Dim Row as Integer
Cells(Row,5).Copy
Hope this helps.
Carlos
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Showing all menu itemsIf you go into a pull down menu you usally find that you get a selection of items(this is the default) or sometimes everything. If you only get a selectiopn you have to go to the double arrows at the bottom of the menu and click it to get all of the hidden items. |