Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi.. this one's for the experts/mathematicians amongst us.. (Harlan, you reading this ? :) does anyone have some routines to invert a (multiarea) selection? or ...along the same line of thought .. to get the the inverse of intersect.. (generally that would give a "LEFT" bucket and a "RIGHT" bucket. It MUST be fast.. thus a simple loop will never suffice. unions above 400 areas get dreadfully slow.. My theory (and bit of practice too:) First get the 'outside range' sized from topleft to bottom right cell of the multiarea.. that's done. (be carefull of unordered areas.) Then create an array of same dimensions... and mark off the selected cells. much faster then checking intersect during a 'normal' loop. But then..? I need an efficient routine to create a a new range object from that array... Since you want to avoid just dumping every TRUE in the array in a union and let excel figure it out.. SO probably I need a 'mazing' algorithm but there I'm stuck for the moment..and I'm pretty sure there must be some nice routines out there! anyone?.. -- keepITcool | www.XLsupport.com | keepITcool chello nl | amsterdam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do you invert your selection of cells in excel? | Excel Discussion (Misc queries) | |||
How can i invert the selection of cells in Microsoft Excel 2007 | Excel Worksheet Functions | |||
How do I invert a selection in Excel 2007? | Excel Discussion (Misc queries) | |||
Invert Excel Selection | Excel Discussion (Misc queries) | |||
help with algorithm | Excel Programming |