Messagebox that checks and tells me what cells have not been filled in?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,197
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

OK so on my welcome sheet I have 6 questions all need to be answered before you can move on.
so what I need is this.

The Titles are in column D
in colum G I have a 1 if its not filled in and a 2 if it is.

So I want a macro that when runs looks at these cells G14,G16:G18,G20 only.

If any of them don't =2 the add the Title to a message box giving each one its own rows.

Example.

ABCDEFG
13Titlescore
14
Left

1
15
16right2
17Up2
18Down

1
19
20
Out

1

<tbody>
</tbody>

So in this case message bow would say

"You Can not proceed until the following areas have been completed."
"Left"
"Down"
"out"
"Thank You"

please help if you can
Tony
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Re: Messagebox that checks and tells me what cells have not been fiolled in?

Something like
Code:
Sub Answers()
   Dim txt As String
   Dim Rng As Range
   txt = "You Can not proceed until the following areas have been completed."
   For Each Rng In Range("G14,g16,g18,g20")
      If Rng.Value = 1 Then txt = txt & vbLf & Rng.Offset(, -3).Value
   Next Rng
   If Len(txt) > 68 Then MsgBox txt
End Sub
 
Upvote 0
Re: Messagebox that checks and tells me what cells have not been fiolled in?

Hi Fluff,
Thank you.
That will do the job just great
Tony
 
Upvote 0
Re: Messagebox that checks and tells me what cells have not been fiolled in?

Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,653
Messages
6,126,046
Members
449,282
Latest member
Glatortue

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top