Solved

offset entire range

Posted on 2012-04-02
2
279 Views
Last Modified: 2012-04-02
Hi,

What is the Syntax for Offsetting 18 columns across and then till the end of the rows. But i need the entire selection selected.

Normally i would say
 Range(Selection, Selection.End(xlToRight)).Select
 Range(Selection, Selection.End(xlDown)).Select

But there is gaps in the data, so i need to specifically say 18 Columns to the right and down to end.

Thanks
Seamus
0
Comment
Question by:Seamus2626
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 37795438
I'm guessing you mean:

Range(Selection, Selection.Offset(0, 18).End(xlDown)).Select

Open in new window


but there is rarely any need to select anything.

Depending on the layout, you may also be able to use:

Selection.CurrentRegion.Select

Open in new window

0
 

Author Closing Comment

by:Seamus2626
ID: 37795456
Range(Selection, Selection.Offset(0, 18).End(xlDown)).Select

That works perfectly for me Rory, just need to clear some errors and this is the quickest way to do it.

Thanks
Seamus
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question