Results 1 to 4 of 4

Thread: Way to insert a Date Picker in MS Excel cell

  1. #1
    Join Date
    Oct 2010
    Posts
    62

    Way to insert a Date Picker in MS Excel cell

    I am having an Excel Workbook and this workbook has very much important data which must need a date to verify them. So I thought to insert the automatic date picker which will release the headache of checking the date for the data again and again. Can anybody tell me how can I insert the date picker in the Excel cell?

  2. #2
    Join Date
    May 2008
    Posts
    979

    Re: Way to insert a Date Picker in MS Excel cell

    I suggest you to add a DateTimePicker control in your excel worksheet at the range. For adding such tool you have to install the Microsoft.Office.Tools.Excel.v9.0 (in Microsoft.Office.Tools.Excel.v9.0.dll). Once your machine has this version then it won't be much hard to add datetimepicker tool in your worksheet. This tool would be in Microsoft.Office.Tools.Excel.Controls.DateTimePicker.

  3. #3
    Join Date
    Nov 2008
    Posts
    1,192

    Re: Way to insert a Date Picker in MS Excel cell

    According to me you have to Add a new DateTimePicker control to the worksheet which is the perfect one for purpose of what you are trying to have on your excel sheet. Here I have provided the methods which you can use to add datetime picker.
    • AddDateTimePicker(Range, String) : Adds a new DateTimePicker control to the worksheet at the range specified.
    • AddDateTimePicker(Double, Double, Double, Double, String) : Adds a new DateTimePicker control to the worksheet in the specified size and location.

  4. #4
    Join Date
    Nov 2008
    Posts
    1,259

    Re: Way to insert a Date Picker in MS Excel cell

    Following are the exceptions that you have to use whenever you use the datetimepicker in your excel sheet. Actually sometime this exceptions saves your work.

    • ArgumentNullException : Name or Range arg is a null which is just nothing in Visual Basic, or Name arg has zero length.
    • ControlNameAlreadyExistsException : A control with the same name is already in the ControlCollection instance.
    • InvalidRangeException : For controlling the specified range. You won't be able to use Multi-area ranges. Specifies range must be on the same worksheet as the ControlCollection instance.

Similar Threads

  1. Replies: 10
    Last Post: 25-02-2012, 10:56 AM
  2. Replies: 2
    Last Post: 17-02-2012, 07:52 PM
  3. Replies: 2
    Last Post: 27-01-2012, 07:59 PM
  4. insert picture in excel 2007 based on cell reference
    By joe.polkendare in forum Windows Software
    Replies: 5
    Last Post: 25-07-2011, 11:40 PM
  5. How to insert last date in excel 2010
    By Calum in forum Windows Software
    Replies: 5
    Last Post: 18-02-2010, 12:07 AM

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
  •  
Page generated in 1,713,295,608.24395 seconds with 17 queries