Popup window using VBA Excel 2010

mdeza81090

New Member
Joined
Dec 27, 2016
Messages
9
I am completely new to VBA and do not really know how to manipulate a code.
I was hoping someone would be willing to formulate the codes I need to input into the VBA box.

I have a sheet for appointment dates at a clinic.
They have dates for each patient as below:

Name First Visit Appt 1 2nd Visit Appt 2 3rd Visit Appt 3 .... 10th Visit
x x/x/x x/x/x x/x/x x/x/x x/x/x x/x/x x/x/x
x x/x/x x/x/x x/x/x x/x/x x/x/x x/x/x x/x/x
x x/x/x x/x/x x/x/x x/x/x x/x/x x/x/x x/x/x

I would like a reminder to pop up everytime the appointment date is past 7 days and the patient has not shown up.

example: if today's date were 10/9/15

Name First Visit Appt 1 2nd Visit Appt 2 3rd Visit Appt 3 .... 10th Visit
A 6/3/15 7/4/15 7/4/15 8/16/15
B 9/10/15 10/10/15
C 7/10/15 8/11/15 8/11/15 9/15/15 9/15/15 10/1/15

Patient A was last due on Aug 16, 2015 for her 2nd appt (3rd visit), but it has been close to two months since that appointment.
Patient B is OK, so no popup is needed
Patient C is also past 7 days from her latest appointment date.

I would like a popup window to show up for patient A and patient C with a text of "call to remind".

And if possible, disable specific popups (for example, I see reminder for patient A, and I remind the patient once, so there is no need for me to see that patient A needs a reminder multiple times)

What would be the best way of doing this?

I am aware that as the excel gets filled up with more patients, there will likely be more patients who need reminders, therefore more popup windows when the excel is first opened.

Any help would be much appreciated.
Thank you in advance, and please let me know if there is any other info i should provide.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
the example i gave did not come out veey well, so here is another example.

Assuming that the date is Dec 30 2016, i need popups for every patient whose appt is 7 days past the appointment date.

 First Visit2nd Visit3rd visit4th visit5th visit6th visit7th visit
PatientFirst Visit DateAppt DateDate of visitAppt DateDate of visitAppt DateDate of visitAppt DateDate of visitAppt DateDate of visitAppt DateDate of visit
A2016/5/12016/6/12016/6/12016/7/112016/7/102016/9/102016/9/10      
B2016/7/152016/8/202016/8/102016/10/112016/10/92016/11/152016/11/17      
C2016/6/232016/8/232016/9/112016/10/302016/11/192016/12/10       
D2016/4/32016/5/3           
E2016/8/172016/11/252016/12/12017/1/1         
F2015/12/82016/1/8           
G2015/12/212016/2/22016/2/22016/4/122016/4/122016/6/122016/9/6      
I2015/12/12015/12/152015/12/152016/1/15         
J2015/3/32015/4/32015/4/72015/6/72015/6/22015/8/22015/8/182015/11/182015/11/132016/2/132016/2/92016/4/92016/4/28

<tbody>
</tbody><colgroup><col><col span="13"></colgroup>

Patient C, Patient D, Patient F, Patient I in this case would need reminder popups.
 
Upvote 0
What columns on your sheet need to be searched for dates?

What version of Excel do you use.

I think we need a comment to popup on the cell if date is past.

Does your version of Excel have comments?
 
Last edited:
Upvote 0
thank you for your reply.
here are the answers to your questions.


What columns on your sheet need to be searched for dates?
Columns J, P, V, AB, AH, AN, AT, AZ, BF, BL, BR, BK

What version of Excel do you use.
Excel 2010

I think we need a comment to popup on the cell if date is past.
I would like the comment/message to be: "Reminder needed"

Does your version of Excel have comments?
I dont know...
 
Upvote 0
What does this mean?

I would like the comment/message to be: "Reminder needed"

Right click on any cell do you see: "Insert Comment"
 
Last edited:
Upvote 0
I would like a popup window with the message "reminer needed".
This part is not so important, so you can ignore it if it is confusing, thanks.
 
Upvote 0
I could write a script to have a comment box popup on any cell with a overdue date. Would that work?
 
Upvote 0
thank you, yes that would be a possible solution.

the only thing is that that might be similar to conditional formatting?

i am looking for a solution to prevent the staff at the clinic from having to look through th entire excel sheet to see if a certain patient needs a reminder.

The ideal would be that something pops up to inform the staff that patient X,Y,Z needs a reminder because they are 7 days past their appt, evey time the excel file is opened.


please let me know if you need any more clarification.


thank you in advance
 
Upvote 0
Why don't we display a list of patient names in say sheet (3) column "A" with the names of all patients overdue. And have this sheet displayed first every time you open the Workbook.

Having 10 or so Popups on the screen telling you what patients are overdue and then having the patients name displayed on the Popup is not something I would know how to do. But someone else here at Mr. Excel may know how to do that.
 
Upvote 0

Forum statistics

Threads
1,214,814
Messages
6,121,711
Members
449,049
Latest member
THMarana

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