Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to combine two SpecialCells CellTypes?


Thanks for the reply.

Unfortunately, there aren't always formula cells in the range.
In that case, Excel doesn't get past the line

Set rng2 = Range("A1:C25").SpecialCells(xlFormulas)

because it throws an error saying that no cells were found. I don'
know why it can't have a null set

--
Stacy3521
-----------------------------------------------------------------------
Stacy35216's Profile: http://www.excelforum.com/member.php...fo&userid=1595
View this thread: http://www.excelforum.com/showthread.php?threadid=27432

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default How to combine two SpecialCells CellTypes?

Always use a on error with specialcells
See Norman's example


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Stacy35216" wrote in message ...

Thanks for the reply.

Unfortunately, there aren't always formula cells in the range.
In that case, Excel doesn't get past the line

Set rng2 = Range("A1:C25").SpecialCells(xlFormulas)

because it throws an error saying that no cells were found. I don't
know why it can't have a null set.


--
Stacy35216
------------------------------------------------------------------------
Stacy35216's Profile: http://www.excelforum.com/member.php...o&userid=15952
View this thread: http://www.excelforum.com/showthread...hreadid=274326



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
Specialcells Bruno Uato Charts and Charting in Excel 0 October 7th 05 07:42 PM
How to combine two SpecialCells CellTypes? Stacy35216 Excel Programming 2 November 1st 04 09:07 PM
SpecialCells(xlCellTypeFormulas) Kevin Gabbert Excel Programming 1 January 28th 04 05:06 PM
AutoFilter /specialcells Ron de Bruin Excel Programming 8 January 13th 04 03:45 PM
specialcells(xlcelltypeblanks) Neil[_11_] Excel Programming 5 October 9th 03 10:11 AM


All times are GMT +1. The time now is 10:46 PM.

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"