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!

Selection of active cell and non-contiguous variable cells

Status
Not open for further replies.

raptorius

Technical User
Jun 26, 2003
6
CA
Lo,

I m new here and just found this great site.

My problem

I want to make a selection of non-contiguous cells
The selection varies daily
So m i m using a active cell for the selection proces

i want to select the activecell + the range of (the cell starting 2 cells next of the active cell) and (the 2 cells down starting from the new activecell)

to make it more cleary

if cell A3 is the active cell
I want to select A3 AND the range of C3:C5

no other cells should be selected

 
Hi raptorius,

Here's one way of doing it ...

Code:
Union(ActiveCell, Range(ActiveCell.Offset(0, 2), ActiveCell.Offset(2, 2))).Select

Enjoy,
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top