VBA pop-up reminder for date column

user294390

New Member
Joined
Feb 17, 2021
Messages
7
Office Version
  1. 2019
Hi,

I am compiling a database and require pop-up alerts for one date column. My spreadsheet is like this:
Column A - vendor name
Column B - expiry date of subscription
and several columns beyond, with other details like address, products etc.

I am trying to add a message box alert 7 days before the date as well as on that date, showing "Subscriptions expiring in 7 days for <corresponding vendor names in column A>"
or "Subscriptions expiring today for <corresponding vendor names in column A>" according to the date.
Would appreciate any help with this, thank you!
 
I'm actually liking how the pop-ups show every time I toggle between sheets so I'm considering splitting my data into two sheets:
- The original Sheet 1 exclusively for the subscription dates with the code
- The Landing sheet for all the other data

If I rename Sheet 1 as "Subscriptions" & Landing as "Vendor details" and make no additions to the code, will it be okay, should any changes be made to the code? The landing sheet will display first on opening the workbook.

Also, thank you for grouping all the messages together in a single box!
 
Upvote 0

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
1. In "Landing" code window
VBA Code:
Private Sub Worksheet_Activate()
    Sheets("Sheet1").Visible = True
    Me.Visible = False
End Sub

2. In ThisWorkbook code window
VBA Code:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    Sheets("Landing").Visible = True
    Sheets("Sheet1").Visible = False
End Sub

3. Save, close and reopen the workbook

Let me know if there are any problems
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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