Reminder/ Code VBA

Smith William
Smith William used Ask the Experts™
on
Hello Experts,

Please have look at my attched file. I am looking for reminder pop up when i open excel for the work not done. Pop up should come up when the work status is "NO".

Pop up -Work No...... is not yet done.

Please code for me.


Thank you in advance.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
You didn't actually attach your workbook.
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
Do you want the message to list all the "work" values where column "B" is "No"?
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Older than dirt
Most Valuable Expert 2017
Distinguished Expert 2018
Commented:
Add this code to Thisworkbook.

Private Sub Workbook_Open()
Dim lngLastRow As Long
Dim lngRow As Long
Dim ws As Sheet1
Dim strNo As String

Set ws = Sheets("Sheet1")
With ws
    lngLastRow = .Range("A1048576").End(xlUp).Row
    For lngRow = 6 To lngLastRow
        If Cells(lngRow, "B") = "No" Then
            If strNo = "" Then
               strNo = Cells(lngRow, "A")
            Else
                strNo = strNo & ", " & Cells(lngRow, "A")
            End If
        End If
    Next
End With
MsgBox "Work Numbers " & strNo & " are not yet done."
End Sub

Open in new window

Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
The attached workbook contains a macro that uses better grammar.
29065104.xlsm

Author

Commented:
Thank you sir. Looks very good. Have a great weekend
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
Please don't forget to close the question.

Author

Commented:
Thank you Sir. It was great CODE.
Martin LissOlder than dirt
Most Valuable Expert 2017
Distinguished Expert 2018

Commented:
You're welcome and I'm glad I was able to help.

If you expand the “Full Biography” section of my profile you'll find links to some articles I've written that may interest you.

Marty - Microsoft MVP 2009 to 2017
              Experts Exchange MVE 2015
              Experts Exchange Top Expert Visual Basic Classic 2012 to 2017

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial