excel+training - offset

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel+training - Offset

excel+training - Offset

resolvedResolved · 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 courses

 

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
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Showing all menu items

If 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.
To turn this off so that you always get everything, go to Tools / Customize / Options Tab / "Always show full menus". Make sure there is a tick in the box and you will always have every item.

View all Excel hints and tips


Server loaded in 0.09 secs.