Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Is there a way to remove a range from within another range?


your SpecialCells approach is correct. and No alternative


a while back i've been looking into this but couldn't find anything like
SUBTRACT or EXCLUDE to complete the family of INTERSECT and UNION Methods


I could be so easy to implement, but native Excel only.
else you need so many loops it's way to slow.

maybe in Excel14.. VB.Net etc etc etc... around 2020 i'd think.



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


Dave wrote:


I'v written a routine to select all the used cells on a sheet by using
Union on the SpecialCells xlConstants & xlFormulas ranges. This code
needs a chunk of error handling in case either of these two ranges do
not exist.

This works fine but I was wondering if there was an easier way such as
simply removing the SpecialCells xlBlanks from the Usedrange, ie the
inverse of a Union procedure?

Cheers

Dave



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to remove old sort range Lou E Excel Discussion (Misc queries) 3 May 29th 08 04:10 PM
Remove #VALUE! from ConCat Range Function Excel Helps Excel Worksheet Functions 5 January 23rd 08 01:37 PM
Excel should let you remove hyperlinks for any range or selection Mark B Excel Discussion (Misc queries) 1 May 3rd 06 09:09 PM
Remove blank cells from a range Dave Excel Discussion (Misc queries) 2 January 4th 06 08:29 PM
Can I remove blanks from a range without using sort? Hugh Murfitt Excel Discussion (Misc queries) 6 March 8th 05 08:37 AM


All times are GMT +1. The time now is 04:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"