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

Worksheet range is wrong

Status
Not open for further replies.

qureshi

Programmer
Mar 17, 2002
104
AU
Hi,
When I use
activesheet.usedrange.select

the range selected is wrong. In the actual sheet the used range is A1:p8 but when I use the above command the selected range is like A1:BI567.

I checked all the other cells are blank. What am I missing?

Thanks
 
It returns the range of cells that have ever been used, not what is used now. All it takes is an entry in cell BI567, and even if you delete it afterwards, the sheet has been used up to that reference. What about using CurrentRegion instead?

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top