how do i make a macro that will select all those cells that are empty

  • Thread starter VB Script for Excel
  • Start date
V

VB Script for Excel

I need to make macro that will select only those cells that have no
values in it. How do i do that?

For example: lets say the excel sheet has values in B4 and A9 and A22.
How would i make a macro that will select all other cells except those
three cells above.?


Regrds
 
N

Niek Otten

Edit>Go To>Special, Select Blanks.
If you need this in VBA, record a macro doing the above

--
Kind regards,

Niek Otten

|I need to make macro that will select only those cells that have no
| values in it. How do i do that?
|
| For example: lets say the excel sheet has values in B4 and A9 and A22.
| How would i make a macro that will select all other cells except those
| three cells above.?
|
|
| Regrds
|
 
B

Bob Phillips

ActiveSheet.UsedRange.SpecialCells(xlCellTypeBlanks).Select


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top