+ Reply to Thread
Results 1 to 9 of 9

VBA pop-up calendar

  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    Slagelse, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    20

    Question VBA pop-up calendar

    Hi all,

    I have a VBA pop-up calendar in my excel sheet. Is it possible to write a code to the calendar making it show the actual month when popping up?

    At the moment it shows the month the form was created.

    Thank you very much.

    -Ronnie

  2. #2
    Forum Contributor CobraLAD's Avatar
    Join Date
    07-23-2007
    Location
    Boksburg, South Africa
    MS-Off Ver
    Office 2019
    Posts
    346

    Re: VBA pop-up calendar

    On what is the month shown. label, textbox?

  3. #3
    Registered User
    Join Date
    08-08-2012
    Location
    Slagelse, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: VBA pop-up calendar

    The calendar is shown in a user form. I have found a property where I can write the desired week to be shown.

    I cannot figure out if it is possible to make this property dynamic.

  4. #4
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: VBA pop-up calendar

    Hi RonnieODIN,
    have a look here http://www.excelforum.com/excel-gene...alendar-2.html
    Andy has a very nice calendar! hope it helps you!
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  5. #5
    Registered User
    Join Date
    08-08-2012
    Location
    Slagelse, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: VBA pop-up calendar

    Thanks for the link John. It is not exactly what I am looking for.

    I have the standard monthly calendar put into a user form that pops up when I select certain cells in Excel and when I choose a date it is put into the cell.

    I am a bit annoyed that the calendar does not pop up showing the actual month.

    This is what I would like to change.

  6. #6
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: VBA pop-up calendar

    one option is to upload yr calendar and someone to amend the code as you want.

  7. #7
    Registered User
    Join Date
    08-10-2012
    Location
    Craigavon, Northern Ireland
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VBA pop-up calendar

    Hi,
    Try adding the following code to This workbook:


    Please Login or Register  to view this content.
    Last edited by stlz; 06-12-2013 at 11:03 AM. Reason: added code tags

  8. #8
    Registered User
    Join Date
    08-08-2012
    Location
    Slagelse, Denmark
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: VBA pop-up calendar

    Thanks for your suggestion stlz.

    I modified it a bit to make it work:

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    08-10-2012
    Location
    Craigavon, Northern Ireland
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: VBA pop-up calendar

    Glad I could help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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