Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default Macro to check if data has been entered

Greetings,
I have a macro button that I use to help people go to the routing dialog
area. I would like to put some code in to check to ensure that the user has
answered all of the questions. If they left something blank or unanswered, I
would like a message box to come up and say something, then end. It will not
let them go to the Routing area until they answer all questions.

Please help. Thank you in advance.
Mike
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Macro to check if data has been entered


Something like

If Worksheetfunction.CountA(Range("A1:A10") < 10 Then
Msgbox "Not every question answered"
Else
'goto the routing area
End If

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Mike R." wrote in message
...
Greetings,
I have a macro button that I use to help people go to the routing dialog
area. I would like to put some code in to check to ensure that the user

has
answered all of the questions. If they left something blank or

unanswered, I
would like a message box to come up and say something, then end. It will

not
let them go to the Routing area until they answer all questions.

Please help. Thank you in advance.
Mike



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
Can I create a macro to generate an email once the data is entered Susan Excel Discussion (Misc queries) 1 October 24th 08 03:02 AM
Macro: Updates a formula or value when a data is entered. [email protected] Excel Worksheet Functions 4 January 25th 07 10:55 AM
Running a macro if any data is entered in a range of cells Jonathan Excel Worksheet Functions 3 November 16th 05 08:38 PM
Use macro to check a range of cells within a row and copy wanted data to new sheet busspeed[_3_] Excel Programming 1 September 29th 04 03:59 PM
Use macro to check a range of cells within a row and copy wanted data to new sheet busspeed Excel Programming 2 September 29th 04 02:55 PM


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