Pop up Reminder on Multiple sheets

Laura Graham

New Member
Joined
Aug 19, 2014
Messages
6
Hi there,
I have this code, firstly it doesn't pick up the dates on REPS CHECKLIST NEW sheet, secondly it WAS running but not running anymore, and when it did run It would give an error on If cell.Value = Date Then
I want it to give me a pop up message reminder - Names in Column A and Dates from Column D:W

Private Sub Workbook_Open()
Dim ws As Worksheet
Dim RunOn As String
Dim cell As Range
RunOn = "|LEADS NEW CHECKLIST|REPS NEW CHECKLIST|"
For Each ws In ThisWorkbook.Sheets
If InStrRev(RunOn, "|" & ws.Name & "|") > 0 Then
For Each cell In ws.Range("D3:W2000")
If cell.Value = Date Then
MsgBox ("Follow Up with" & " ") & ws.Range("A" & cell.Row).Value & " - " & ws.Name
End If
Next cell
End If
Next ws
End Sub
 

Attachments

  • code.JPG
    code.JPG
    47 KB · Views: 8

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Try using the ISDATE function to check to see whether the cell contains a date.
 
Upvote 0
So what are you checking for in your code?

If cell.value = Date or cell.value = Date
 
Upvote 0
What error message you are getting?

I've tried doing the same thing and it works fine for me
 
Upvote 0

Forum statistics

Threads
1,215,410
Messages
6,124,756
Members
449,187
Latest member
hermansoa

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