PC Review


Reply
Thread Tools Rate Thread

How do I skip cells in a given range?

 
 
=?Utf-8?B?TmV3R3V5?=
Guest
Posts: n/a
 
      30th Jan 2007
My macro calculates a large range. There are certain cells in that range that
I don't want it to include in it's performace, but I'm not sure how to get it
to skip those cells. I've tried using multiple ranges, but if I add a row
onto the worksheet, I then have to go into VBE and re-configure the multiple
ranges. HEEEELLLLPPP!!!!!
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      30th Jan 2007
Using code, you would have to do it by either exclusion ( If not something or
<> something or > something or < something) or by inclusion (If = something
or Like something). If all the ranges you want to skip are blank, for
instance, you could use: If Not IsEmpty(Selection) then do something : If
the cell is blank, it would be skipped and move on to the next one. This
approach could be used with the For...Each...Next method where each cell is
tested for the condition.

"NewGuy" wrote:

> My macro calculates a large range. There are certain cells in that range that
> I don't want it to include in it's performace, but I'm not sure how to get it
> to skip those cells. I've tried using multiple ranges, but if I add a row
> onto the worksheet, I then have to go into VBE and re-configure the multiple
> ranges. HEEEELLLLPPP!!!!!

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combine and display values in range in 1 cell but skip blank cells Swiss Microsoft Excel Worksheet Functions 3 4th Sep 2009 10:00 PM
copy /past range skip cells ORLANDO VAZQUEZ Microsoft Excel Misc 3 25th Mar 2009 09:47 PM
Number Cells skip blank cells, Excel 2000 & 2003 jfcby Microsoft Excel Programming 4 31st Jul 2007 03:02 PM
How do I skip blank cells when copying over a range of cells? =?Utf-8?B?dGF3ZWxscw==?= Microsoft Excel Misc 2 7th Jun 2005 09:36 PM
Skip cells with TAB/SHIFT+TAB but allow arrow keys/mouse selection of skipped cells Wescotte Microsoft Excel Programming 1 6th Jun 2005 07:00 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:44 PM.