+ Reply to Thread
Results 1 to 6 of 6

NonActiveX DateTime Picker: Conpile error in hidden module

  1. #1
    Registered User
    Join Date
    02-21-2006
    Posts
    27

    NonActiveX DateTime Picker: Conpile error in hidden module

    I downloaded a nonActiveX DateTime Picker (frmCalendar) from a website recommended by RoyUK and managed to get it to work on my workbook and a few other users' workbook. Did tests on XP (Excel 2003) and on Vista (Excel 2007) - both came out without any issues.

    However a few users running Vista/Excel 2007 keep getting the error message:

    "Compile error in hidden module: ThisWorkbook"

    I checked the contents of ThisWorkbook and it was unchanged from before I implemented the new frmCalendar. I removed all traces of the previous DatePicker implementation which was based on mscal.ocx.

    I know I am not giving a lot of information here but can someone tell me where to start looking for possible problems. Thanks.

    Regards
    Phil
    Last edited by vbarookie; 03-31-2011 at 11:38 PM.

  2. #2
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: NonActiveX DateTime Picker: Conpile error in hidden module

    Any chance that you can attach a sample workbook?
    It's easier to troubleshoot that way.
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  3. #3
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: NonActiveX DateTime Picker: Conpile error in hidden module

    Here is a workbook with royUK's calendar in it...see if you can open the calendar in this file.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-21-2006
    Posts
    27

    Re: NonActiveX DateTime Picker: Conpile error in hidden module

    Quote Originally Posted by jwright650 View Post
    Any chance that you can attach a sample workbook?
    It's easier to troubleshoot that way.
    Unfortunately I can't as the workbook has client information. The sample code which RoyUK provided worked for me. I was hoping someone can tell me where to start looking for the problem. Like for example, is there anyway to force Excel to produce more detailed error messages or is there an Excel log file with more error details.

    Phil

  5. #5
    Registered User
    Join Date
    02-21-2006
    Posts
    27

    Re: NonActiveX DateTime Picker: Conpile error in hidden module

    jwright650:

    I looked thru the sample code u provided and noted that the Calendarfrm implementation in your sample code does not make use of a class module whereas the version I download from the website recommended by RoyUK required me to create a class module with one procedure CmdBtnGroup_Click().

    In anycase, I will look into your version of Calendarfrm and test it on those laptops that are failing in the version I am using.

    Thanks for the tip.

    Phil

  6. #6
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    606

    Re: NonActiveX DateTime Picker: Conpile error in hidden module

    Phil,
    Here is the same file but is using a calendar build VBA code....try this one and see if it is something you like. Thread with attached file

+ 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