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: 29
Default Transferring date's from a calendar control to a text box on a use

Hi
I'm unable to transfer the date (on clicking the calendar) to a text box on
my userform. For some reason the date gets recorded on one of my sheet tab's
where the cursor was last placed.
(Both the Calendar from & Module were imported from another Project, not
sure what I'm missing )

This is the code I've written. What amendments do i need to make ? Will
apreciate any help.
-------------
Private Sub TxtContactDate1_DblClick(ByVal cancel As MSForms.ReturnBoolean)
CalendarFrm.Show
End Sub

Private Sub CalendarFrm_Click()
Me.viewrecord.TxtContactDate1.Value = Me.CalendarFrm.Value
'ActiveCell.Value.NumberFormat = "mm/dd/yyyy"
End Sub
--------
TxtContactDate1 (is the text box on my userform)
CalendarFrm (is the form I invoke when I double click on "TxtContactDate1"

 
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
Transferring Control From VBA Form to Spreadsheet Tony LeGrand Excel Programming 2 November 10th 06 02:33 PM
Opening a workbook withAuto-open Macros without transferring control [email protected] Excel Programming 0 November 3rd 06 12:13 AM
Control disappeared problem - specifically, the Calendar Control JMMach[_2_] Excel Programming 0 December 16th 05 01:53 AM
Date's antinoz Excel Programming 2 September 13th 04 06:45 AM
Calendar Control: Can't exit design mode because control can't be created Rone Excel Programming 0 May 24th 04 04:01 PM


All times are GMT +1. The time now is 11:48 PM.

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

About Us

"It's about Microsoft Excel"