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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Variable sized ranges 1

Status
Not open for further replies.

izzyq

MIS
Mar 13, 2002
38
CA
When using the Range(activeCell, ActiveCell.End(xlDown)).Select action which selects the active cell down to the down to the non-empty cell, do i add on to it move back up one to an empty cell. What I need to accomplish is select a range of blank cells sandwiched between to sets of data. Help Me Obi Wan Kenobi, You're My Only Hope.
 

What you're doing is coding something that mimics user key-presses...

What you might try is recording a macro that does exactly what you want the VBA to accomplish, and then see what Excel creates for you.
 
Does

Range(ActiveCell, ActiveCell.End(xlDown)).SpecialCells(xlCellTypeBlanks).Select

help ?

AC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top