LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Date Time Picker : Error 35788

Hi,

In a Excel VBA macro, I have a Date Time Picker from which I want to
read and write dates.

Properties of my DTPicker control :

..customformat = "dd/MM/yyyy"
..checkbox = true


Sub save_detail()
Dim MyDate As Date
[...]
If IsDate(MainForm.txtMepDate.value) Then
MyDate = CDate(MainForm.txtMepDate.value)
Worksheets("donnees").Cells(flux_line, 50).value = MyDate
Else
Worksheets("donnees").Cells(flux_line, 50).value = ""
End If
[...]
End Sub

Sub init_detail(selected_flux As String)
Dim MyDate As Date
[...]
If IsDate(Worksheets("donnees").Cells(flux_line, 50).value)
Then
MyDate = CDate(Worksheets("donnees").Cells(flux_line,
50).value)
MainForm.txtMepDate.value = MyDate
Else
MainForm.txtMepDate.value = Null
End If

[...]
End Sub


The part "save_detail" works good : I find in my workbook cell a valid
date "dd/MM/yyyy hh:mm:ss"

But for the init_detail, it works good until I close the workbook and
reopen it.
Values saved before I close the workbook cannot be set with
init_detail, I have the error :

Error n°35788 : "An error occured in a call to the Windows Date and
Time Picker control"


I have tried many things I have read (window visible, change custom
format, etc.) but no solution.


Thanks for help

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Date Time Picker Mike Excel Discussion (Misc queries) 0 November 16th 06 04:36 AM
Date and Time Picker DAN J Excel Discussion (Misc queries) 2 September 21st 06 11:47 PM
Date and Time Picker Jeff G Excel Programming 4 January 1st 06 01:30 PM
date / time picker error Mark Excel Programming 0 October 3rd 05 02:51 AM
date time picker error KEvin Excel Programming 0 August 22nd 03 06:50 AM


All times are GMT +1. The time now is 10:32 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"