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

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
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.

[TABLE="width: 1554"]
<tbody>[TR]
[TD] [/TD]
[TD]First Visit[/TD]
[TD="colspan: 2"]2nd Visit[/TD]
[TD="colspan: 2"]3rd visit[/TD]
[TD="colspan: 2"]4th visit[/TD]
[TD="colspan: 2"]5th visit[/TD]
[TD="colspan: 2"]6th visit[/TD]
[TD="colspan: 2"]7th visit[/TD]
[/TR]
[TR]
[TD]Patient[/TD]
[TD]First Visit Date[/TD]
[TD]Appt Date[/TD]
[TD]Date of visit[/TD]
[TD]Appt Date[/TD]
[TD]Date of visit[/TD]
[TD]Appt Date[/TD]
[TD]Date of visit[/TD]
[TD]Appt Date[/TD]
[TD]Date of visit[/TD]
[TD]Appt Date[/TD]
[TD]Date of visit[/TD]
[TD]Appt Date[/TD]
[TD]Date of visit[/TD]
[/TR]
[TR]
[TD]A[/TD]
[TD]2016/5/1[/TD]
[TD]2016/6/1[/TD]
[TD]2016/6/1[/TD]
[TD]2016/7/11[/TD]
[TD]2016/7/10[/TD]
[TD]2016/9/10[/TD]
[TD]2016/9/10[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]B[/TD]
[TD]2016/7/15[/TD]
[TD]2016/8/20[/TD]
[TD]2016/8/10[/TD]
[TD]2016/10/11[/TD]
[TD]2016/10/9[/TD]
[TD]2016/11/15[/TD]
[TD]2016/11/17[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]2016/6/23[/TD]
[TD]2016/8/23[/TD]
[TD]2016/9/11[/TD]
[TD]2016/10/30[/TD]
[TD]2016/11/19[/TD]
[TD]2016/12/10[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]2016/4/3[/TD]
[TD]2016/5/3[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]E[/TD]
[TD]2016/8/17[/TD]
[TD]2016/11/25[/TD]
[TD]2016/12/1[/TD]
[TD]2017/1/1[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]F[/TD]
[TD]2015/12/8[/TD]
[TD]2016/1/8[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]G[/TD]
[TD]2015/12/21[/TD]
[TD]2016/2/2[/TD]
[TD]2016/2/2[/TD]
[TD]2016/4/12[/TD]
[TD]2016/4/12[/TD]
[TD]2016/6/12[/TD]
[TD]2016/9/6[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]I[/TD]
[TD]2015/12/1[/TD]
[TD]2015/12/15[/TD]
[TD]2015/12/15[/TD]
[TD]2016/1/15[/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]J[/TD]
[TD]2015/3/3[/TD]
[TD]2015/4/3[/TD]
[TD]2015/4/7[/TD]
[TD]2015/6/7[/TD]
[TD]2015/6/2[/TD]
[TD]2015/8/2[/TD]
[TD]2015/8/18[/TD]
[TD]2015/11/18[/TD]
[TD]2015/11/13[/TD]
[TD]2016/2/13[/TD]
[TD]2016/2/9[/TD]
[TD]2016/4/9[/TD]
[TD]2016/4/28[/TD]
[/TR]
</tbody><colgroup><col><col span="13"></colgroup>[/TABLE]

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,223,228
Messages
6,170,874
Members
452,363
Latest member
merico17

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