Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Calendar poping up on form when not wanted

On two text boxes in a frame I want to enter dates and therefore have a
calendar to pop up. I also have a combobox in the frame for other stuff.
However for some reason when I click on the combobox the calendar pops up.
This only happens the first time, if I close the calendar and then click on
the combobox again then I get my dropdown list. I have a similar issues with
this in another frame but I will wait for an answer on this.

Here is my code:
the procedure to show the calendar
Sub ShowCalendar()
frmCalendar1.Calendar1.Value = Date
frmCalendar1.Show
End Sub

here is the call from one of the text boxes
Private Sub TBReqDueDate_Enter()
ShowCalendar
TBReqDueDate.Value = DateSelected
End Sub

Any help please.

--
Jason V
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Calendar poping up on form when not wanted

Let me modify this. It appears to have nothing to do with the calendar. What
is happening is that when I first click on any testbox or combobox in the
frame it always wants to run Private Sub TBXYZ Enter () routine the first
time. I do not know why this is. I have searched the program and there are no
reason for it to go to this.
--
Jason V


"Jason V" wrote:

On two text boxes in a frame I want to enter dates and therefore have a
calendar to pop up. I also have a combobox in the frame for other stuff.
However for some reason when I click on the combobox the calendar pops up.
This only happens the first time, if I close the calendar and then click on
the combobox again then I get my dropdown list. I have a similar issues with
this in another frame but I will wait for an answer on this.

Here is my code:
the procedure to show the calendar
Sub ShowCalendar()
frmCalendar1.Calendar1.Value = Date
frmCalendar1.Show
End Sub

here is the call from one of the text boxes
Private Sub TBReqDueDate_Enter()
ShowCalendar
TBReqDueDate.Value = DateSelected
End Sub

Any help please.

--
Jason V

Reply
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
How to set formula for poping up the date of next Wednesday.... J Excel Worksheet Functions 2 June 30th 09 09:26 AM
I want to stop the help menu poping up in excel Bob Excel Discussion (Misc queries) 2 April 25th 07 04:44 PM
Call up form calendar form VBA Bob Phillips Excel Programming 3 January 21st 07 10:50 PM
Copy form field value to another form (calendar) [email protected] Excel Programming 1 December 1st 05 09:58 PM
poping up a box with choices? neowok[_42_] Excel Programming 1 March 5th 04 11:06 PM


All times are GMT +1. The time now is 02:22 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"