Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi! I have a userform calendar that I want to input a date with. What I want is: 1. The form to remain visible while I select another cell to input to. 2. The input cell must be in the range "Dates" This is the code in the userform. This code does not work. < code start Option Explicit Private Sub Calendar1_Click() ActiveCell.NumberFormat = "mm/dd/yyyy" If ActiveCell.Address = Range("Dates") Then ActiveCell.Value = Calendar1.Value Else Exit Sub End If End Sub < code stop Any help or direction would be appreciated! Thanks! -- Brian Matlack ------------------------------------------------------------------------ Brian Matlack's Profile: http://www.excelforum.com/member.php...fo&userid=3508 View this thread: http://www.excelforum.com/showthread...hreadid=544355 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Option Explicit
Private Sub Calendar1_Click() ActiveCell.NumberFormat = "mm/dd/yyyy" If not Intersect(ActiveCell,Range("Dates")) is nothing then ActiveCell.Value = Calendar1.Value End if End sub -- Regards, Tom Ogilvy "Brian Matlack" wrote: Hi! I have a userform calendar that I want to input a date with. What I want is: 1. The form to remain visible while I select another cell to input to. 2. The input cell must be in the range "Dates" This is the code in the userform. This code does not work. < code start Option Explicit Private Sub Calendar1_Click() ActiveCell.NumberFormat = "mm/dd/yyyy" If ActiveCell.Address = Range("Dates") Then ActiveCell.Value = Calendar1.Value Else Exit Sub End If End Sub < code stop Any help or direction would be appreciated! Thanks! -- Brian Matlack ------------------------------------------------------------------------ Brian Matlack's Profile: http://www.excelforum.com/member.php...fo&userid=3508 View this thread: http://www.excelforum.com/showthread...hreadid=544355 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks Tom! The code works Great! I'll keep working on the problem with keeping the userform visible while I select a different cell. Thanks again!! -- Brian Matlack ------------------------------------------------------------------------ Brian Matlack's Profile: http://www.excelforum.com/member.php...fo&userid=3508 View this thread: http://www.excelforum.com/showthread...hreadid=544355 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I set up an input calendar for users in excel | Excel Discussion (Misc queries) | |||
Convert date from Gregorian Calendar to Hijri Calendar | Excel Discussion (Misc queries) | |||
find free sharware to include calendar pop or use calendar in cell | Excel Discussion (Misc queries) | |||
Date Input to Cell with pop-up calendar | Excel Discussion (Misc queries) | |||
calendar control - pivot table input variable | Excel Programming |