Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default dialogue box if cells are not filled

Hi

I have a spreadsheet with about 100 entry spots

I have macros written to save the data, what I would like is a way to stop
the save if not all the data is entered, and come up with a text box warning
"Not all Data entered"

simple answer?

thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default dialogue box if cells are not filled

Maybe you could incorporate something like:

dim myRngToCheck as range

with worksheets("sheet999")
set myrngtocheck = .range("a1:c3,D9,f14")
end with

if myrngtocheck.cells.count = application.countif(myrngtocheck) then
'all filled with something!
else
msgbox "Please fill some cells"
exit sub
end if



BillO wrote:

Hi

I have a spreadsheet with about 100 entry spots

I have macros written to save the data, what I would like is a way to stop
the save if not all the data is entered, and come up with a text box warning
"Not all Data entered"

simple answer?

thanks


--

Dave Peterson
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
Reminder that cells are not filled in Jonno Excel Discussion (Misc queries) 2 July 30th 09 09:02 AM
Average only if ALL cells filled. chuck72352[_3_] Excel Worksheet Functions 2 July 8th 09 06:57 PM
Filled cells dont appear as filled SMILLS Excel Discussion (Misc queries) 6 October 18th 07 05:28 PM
count filled cells smandula Excel Programming 2 September 18th 06 08:41 PM


All times are GMT +1. The time now is 11:39 AM.

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"