+ Reply to Thread
Results 1 to 12 of 12

Using a Date time picker in a VBA form

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

    Using a Date time picker in a VBA form

    I'm having the same problem with DTPicker when trying to share an Excel file. I placed the Excel file on our server here at work and I'm the only person who can open it without any errors. I copied the mscomct2.ocx file to the same folder on the server, and tried to copy it to other compters who would need to use the Excel file....still can't find the DTPicker when adding tools to the toolbox in VBA.

    Please see this old post
    Last edited by Leith Ross; 12-13-2010 at 01:41 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Using a Date time picker in a VBA form

    I would never use these controls, see some alternatives here There's a calendar form or a set of ComboBoxes that can be used
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  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: Using a Date time picker in a VBA form

    Thanks Roy for the link to the Add-Ins. I will have to try this alternative date picker and see how that works out.

    Is there a way to tie the add-ins to the file so that the person opening the file with an add-in won't have to go to the Internet to D/L the add-in?

    ...edit: sorry about the tag on question to the other poster's thread. I'll be carefull in the future.
    Last edited by jwright650; 12-13-2010 at 04:47 PM. Reason: added comment

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Using a Date time picker in a VBA form

    Use the ComboBox example or the CalendarForm example, not the addin

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

    Re: Using a Date time picker in a VBA form

    Quote Originally Posted by jwright650 View Post
    Thanks Roy for the link to the Add-Ins. I will have to try this alternative date picker and see how that works out.
    Hi royUK,
    D/L'd the Calendar Add-in, but I have an issue when I go under "Tools"/"JR Datepicker" >Show...it instantly gives me a run time error 9
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Using a Date time picker in a VBA form

    I've just downloaded it & run it with no problem.

    Which version of Excel are you using?

    How did you load the addin?

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

    Re: Using a Date time picker in a VBA form

    Quote Originally Posted by royUK View Post
    I've just downloaded it & run it with no problem.

    Which version of Excel are you using?

    How did you load the addin?
    I'm using Excel 2003 on an XP machine.
    I ran the xls file and then under Tools/Add-ins checked the box beside the JR_Datepicker. Then closed Excel. Went back in Excel and under Tools/JR_Datepicker_Show > the very second my mouse travels over the menu to fly out, it displays the runtime error 9. I followed the "automatic install" option first, then the "manual" option....neither seemed to make it work correctly.
    Any ideas what I did wrong?

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Using a Date time picker in a VBA form

    I can't duplicate the error

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

    Re: Using a Date time picker in a VBA form

    Hi royUK,
    I'm going to delete it and D/L a fresh copy and see if that will work.

    BTW, I D/L'd the zip file to a folder (C:/My Documents/Installs) where I copy most of the stuff that I D/L. Should that file be located somewhere else to install correctly? Excel had it listed in the list of Add-ins to show.

  10. #10
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Using a Date time picker in a VBA form

    All you need to do is to extract the addin to a folder, usually have a folder on the C Drive & name it addins. keep all your addins there, then simply use Tools -> Addins & browse for the file

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

    Re: Using a Date time picker in a VBA form

    Used a calendar build VBA code instead....Thread is "Solved"

  12. #12
    Registered User
    Join Date
    04-11-2011
    Location
    The Netherlands
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Using a Date time picker in a VBA form

    Could you please let us know which solution you used?

+ 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