Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default defining a range

Hi All,

I defined a range containing empty cells in column C:
Dim emptycells As Range
Set emptycells = Columns("C:C").SpecialCells(xlCellTypeBlanks)

How can I define another range that contains all rows in which these empty
cells occur?

Thanks,
Stefi

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default defining a range

Hi Stefi,

Try:

Dim EmptyCells As Range

On Error Resume Next
Set EmptyCells = Columns("C:C"). _
SpecialCells(xlCellTypeBlanks).EntireRow
On Error GoTo 0



---
Regards,
Norman



"Stefi" wrote in message
...
Hi All,

I defined a range containing empty cells in column C:
Dim emptycells As Range
Set emptycells = Columns("C:C").SpecialCells(xlCellTypeBlanks)

How can I define another range that contains all rows in which these empty
cells occur?

Thanks,
Stefi



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default defining a range

Thanks Norman, how simple it is if one knows the answer!
Stefi


€˛Norman Jones€¯ ezt Ć*rta:

Hi Stefi,

Try:

Dim EmptyCells As Range

On Error Resume Next
Set EmptyCells = Columns("C:C"). _
SpecialCells(xlCellTypeBlanks).EntireRow
On Error GoTo 0



---
Regards,
Norman



"Stefi" wrote in message
...
Hi All,

I defined a range containing empty cells in column C:
Dim emptycells As Range
Set emptycells = Columns("C:C").SpecialCells(xlCellTypeBlanks)

How can I define another range that contains all rows in which these empty
cells occur?

Thanks,
Stefi




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
Defining a range Jonathan Excel Programming 3 June 28th 06 06:11 AM
Defining a range for a look up MH UK Excel Programming 5 February 16th 06 03:11 PM
Defining a range and use it's value Petitboeuf[_3_] Excel Programming 1 December 15th 05 06:34 PM
Defining a Range Ric[_5_] Excel Programming 4 April 26th 04 07:34 PM
Defining range Edgar[_3_] Excel Programming 2 February 17th 04 02:24 PM


All times are GMT +1. The time now is 12:40 PM.

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

About Us

"It's about Microsoft Excel"