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

excel+training - offset

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

excel+training - Offset

ResolvedVersion 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:

Bracketed negative numbers

Often Excel users wish to display negative numbers in colour red and bracketed

Intstructions
Step1. Select Format > Cells menu options. Within Numbers tabsheet, select Category = Custom.
Step 2. Select a type such as #,##0;[Red]-#,##0;; that specifies a colour in square brackets.
Step 3. Amend as follows; #,##0;[Red](#,##0;;

Notes: Excel formatting featues are of the form
"Positive; Negative;Zero;Text" separated by semicolon.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.1 secs.