Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA macros to check a blank

Hi,

My spreadsheet has a space allows a user to input information.
I want to know codes to check whether the input space includes a blank or not.
Also, if there is a blank cell, I want to show a dialog to display message.
Does anybody know how to do it?

Thanks for your help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA macros to check a blank

set rng = Range("A1:A10")
if application.Countblank(rng) 0 then
msgbox "Contains blanks"
End if

--
Regards,
Tom Ogilvy

"coffee11" wrote in message
...
Hi,

My spreadsheet has a space allows a user to input information.
I want to know codes to check whether the input space includes a blank or

not.
Also, if there is a blank cell, I want to show a dialog to display

message.
Does anybody know how to do it?

Thanks for your help!



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
Blank Check? PlutoNash Excel Worksheet Functions 1 March 3rd 10 06:01 PM
Check for Non Blank and Blank Cells Before Save igbert Excel Discussion (Misc queries) 2 July 2nd 09 08:36 PM
is it possible 2 macros in 1 check box? HERNAN Excel Discussion (Misc queries) 1 May 15th 08 04:09 PM
Check box macros Sunlover Excel Discussion (Misc queries) 5 January 10th 08 01:28 AM
Pls help to check my macros tang lk Excel Programming 0 November 3rd 04 01:47 PM


All times are GMT +1. The time now is 03:16 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"