Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select across and down 5 rows 1

Status
Not open for further replies.

meldrape

Programmer
May 12, 2001
516
US
Hi there,

Here is yet another very elementary question. I have the following code which works just fine to select across, BUT I also need to select 5 rows down:

Sheets("Customers").Select
ActiveCell.Select
Range(Selection, Selection.End(xlToRight)).Select
Selection.Copy

Any help would be greatly appreciated. Many thanks in advance.
 
Try this:
Code:
  Sheets("Customers").Select
  ActiveCell.Select
  Range(Selection, Selection.End(xlToRight)).Select
  Range(Selection, Selection.Offset(5, 0)).Select    
  Selection.Copy

Hope this helps!
Clive [infinity]
Ex nihilo, nihil fit (Out of nothing, nothing comes)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top