Solved

offset entire range

Posted on 2012-04-02
2
283 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

623 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