+ Reply to Thread
Results 1 to 15 of 15

Excel Userform Popup Notification

  1. #1
    Registered User
    Join Date
    10-16-2011
    Location
    Saratoga, Ca
    MS-Off Ver
    Excel 2010
    Posts
    9

    Excel Userform Popup Notification

    I have been trying to get the right result for a few days with no success. I have a worksheet with multiple tabs which lists reports and their completion dates. I am trying to get a Userform to Popup with the reports that are due within zero to thirty days when the workbook is opened. I can get the Userform to Popup... bur I cannot seem to find a way to get any data based on the Selection criteria. I believe it is an issue with my cac in the Userform code. I have attached the workbook. Once I get the first sheet working I can doe the other 5 sheets and eventually add email notification at 10 days before due. Thank you in advance for any assistance. The userform is blank so right click to see code.
    Attached Files Attached Files
    Last edited by mwo; 10-18-2011 at 11:57 PM. Reason: Violation of Posting Rule 1

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Need Help, Cannot get results in Userform

    Hello mwo,

    Welcome to the Forum!

    Since your UserForm is blank, what information did you want to display on it?

    Do you need to search for records and edit them?
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    10-16-2011
    Location
    Saratoga, Ca
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Need Help, Cannot get results in Userform

    Sorry for my ignorance.... I changed the Title. I hope this is in compliance. Thanks for your guidance

  4. #4
    Registered User
    Join Date
    10-16-2011
    Location
    Saratoga, Ca
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Need Help, Cannot get results in Userform

    Hello Leith,
    Thanks for the response.

    Yes the userform is blank. It's purpose is to function like a Popup msg. Box with the data that is selected by the userform1 code. The problem I am having is getting it to select anything and return it to the Userform.

    Using the "report dates in column 4" I was hoping to select all the reports that are between 335 days and 365 days old. i.e. they need to be updated annually. Let me know if I am making sense. Thanks again

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Excel Userform Popup Notification

    Hello mwo,

    So, you want to display list of the reports due like a message box would?

  6. #6
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Excel Userform Popup Notification

    I don't see any column labeled Due Date.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  7. #7
    Registered User
    Join Date
    10-16-2011
    Location
    Saratoga, Ca
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Excel Userform Popup Notification

    Hello Leith,

    That is correct. Where you able to look at the code?

  8. #8
    Registered User
    Join Date
    10-16-2011
    Location
    Saratoga, Ca
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Excel Userform Popup Notification

    Hello mikerickson,

    I was planning on using the original report date to calculate it in the VBA code on userform1. Maybe that is my problem. Can I do it that way. By the way the due is just one year from the report date. What I am trying to accomplish is have a popup that reminds anyone opening the workbook that the report needs to be updated within the 30 days of its anniversery. So I was trying to select it using; "CL.Value .>= (Date-335) And CL.Value <= (Date-365). Does this make sense?

  9. #9
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Excel Userform Popup Notification

    What range on what sheet should one be looking at to determine which reports to put in the pop-up?
    What do you want the pop-up to read just a list of report numbers or other data?
    Aprox. how many reports do you expect this to show?

    Is there a particular reason that you prefer a userform to a MsgBox?

  10. #10
    Registered User
    Join Date
    10-16-2011
    Location
    Saratoga, Ca
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Excel Userform Popup Notification

    Using the VBA editor you should be able to access the code I have on userfrom1 in the workbook I attached. Let me know I can always upload again.. I need a report for each sheet. starting with sheet2. However I was developing the userform for sheet5, (sheet5 just happens to be the 2nd sheet in the workbook). But same applies for Sheet2 thru sheet5. I did not want to necessarily bother anyone to develop the entire thing. If I can get one sheet to work, I probably can modify to get the other sheets up and running.So to answer your question at this time I was planning on 4 reports. Range is on sheet5 starting at row 4, column 4. On the userform1 code as follows:
    Please Login or Register  to view this content.

    No particular reason, just thought if I planned to modify later for selection or email it might be easier.

    Thanks, I hope I am not being too stupid here.
    Last edited by Leith Ross; 10-18-2011 at 10:25 PM. Reason: Added Code tags

  11. #11
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Excel Userform Popup Notification

    That code looks like it should work, one there is a listbox in the userform.

  12. #12
    Registered User
    Join Date
    10-16-2011
    Location
    Saratoga, Ca
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Excel Userform Popup Notification

    The userform pops up but no mater what date I put in the column I do not get any data in the form. Trying to figure out what is wrong with the selection process. Any thoughts?

  13. #13
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Excel Userform Popup Notification

    There is no place in the userform for the data to be shown.
    Put some controls in the userform and load the data into them.

  14. #14
    Registered User
    Join Date
    10-16-2011
    Location
    Saratoga, Ca
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Excel Userform Popup Notification

    One thought. Am I missing something. Do I need to put a list box some where? I assumed it was create by the code.

  15. #15
    Registered User
    Join Date
    10-16-2011
    Location
    Saratoga, Ca
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Excel Userform Popup Notification

    Thanks very much mikerickson,

    You asked enough questions to force me to figure out my ignorance. "No list box in the userform". Thank You again. Being the newbe that I am, I would have played with the VB Code for Months.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1