![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: North Wales Coast, UK
Posts: 95
|
Evening All,
This is just a quick question, with hopefully a quick answer. I am looking to 'test' to see if a cell is blank within a macro. I would be grateful if someone could please point me in the right direction. Cheers S |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: Sydney/Brisbane , Australia
Posts: 539
|
try this
sub checkifempty If Range("a1").Value = "" Then MsgBox "sorry 'ol chap. the cell is empty" Exit Sub |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: North Wales Coast, UK
Posts: 95
|
Just a quick thank you to you both for responding so promptly.
I will be 'Excel'ling in the morning - testing for Blank Cells! Cheers S |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|