+ Reply to Thread
Results 1 to 10 of 10

VBA Calendar Control does not show day numbers. ??

  1. #1
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    VBA Calendar Control does not show day numbers. ??

    Hi,

    Over in the following thread

    http://www.excelforum.com/showthread...=1#post1946987

    you can see we've hit a problem with the Calendar Control object.

    I submitted a workbook which has an Activex calendar control embedded on a User Form. On my PC everything appears as you'd expect, with the calendar showing the individual days in the calendar matrix. However when the user loads the form on their system, although they see the calendar as you'd expect, and they can change the month & year at the top of the calendar, they don't see the individual day numbers, 1,2,3 etc. within the body of the calendar.

    Can anyone shed any light on what the problem might be? The original thread contains a picture image of the calendar showing the 'missing' days.

    Regards and usual TIA

  2. #2
    Registered User
    Join Date
    06-28-2007
    Posts
    63
    Bump... If anyone has an idea on how to fix the above issue I would appreciate the help.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Nothing to do with this article?

    http://www.fontstuff.com/mailbag/qvba01.htm

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    VBA Noob[/QUOTE]

    Hi VBA N

    Thanks for the link but I don't think this helps. The user has the calendar control object ticked in the VBE, and indeed can see the calendar control. It's just that the little matrix of boxes containing the days 1-31 has no numbers in it - weird because it works fine on my PC.

    Rgds

  5. #5
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    They might be missing some screen font.

  6. #6
    Registered User
    Join Date
    06-28-2007
    Posts
    63
    Is there some where I can edit the code for the actual calander to see what font is being used?

  7. #7
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    It may be a common font or not one at all. To see if it is a font issue, go to your Fonts folder and copy all the fonts. In the other user's Font folder, move his to some other Folder. Then paste your fonts into his folder.

  8. #8
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    A google search for: XP "Missing Fonts", might show which screen fonts that might be the problem.

    You might also try changing the default printer.

    Changing screen resolution might help but I doubt it.

  9. #9
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi,

    That's a good point Kenneth makes about the screen fonts. Unfortunately I use a Mac for most things, and this doesn't have the VBA syntax for calendar controls, and ironically the old Windows PC I used to test the original code has just died on me, so I can't check this out. However if you go into the VBE, select the User form and click on the calendar object, then look for the Font property in the Properties window, you should be able to change it to one which is recognised by your PC.

    Failing that of course we can just go back to the original idea of having the user enter the date in an input box, which isn't quite as elegant, but will get you going. Let me know how you get on.

    Regards,

    R.

  10. #10
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    Good point Richard. The GridFont Propterty on mine is Regular Arial 8 Western script. So, the other user most likely has that font missing or it is corrupt. Use the method that I detailed to copy or add a good font.

+ 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