Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Leah Robinson   on Feb 18 In MS Office Category.

  
Question Answered By: Jana Franklin   on Feb 18

Try this one.

Sub SelEmpty()
Dim EmptyCells, MyCell As Range
Dim First As Boolean
First = True
For Each MyCell In Range("A1:I9").Cells
If MyCell.Formula = "" Then
If First Then
Set EmptyCells = MyCell
First = False
Else
Set EmptyCells = Union(EmptyCells, MyCell)
End If
End If
Next 'MyCell
EmptyCells.Select
End Sub

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on MACRO Or get search suggestion and latest updates.


Tagged: