Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi all,
I want to create an input box that asks users for the date to use in the spreasheet, then I want this date to populate to a worksheet named "Summary" in cell A4. Your help in appreciated... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
FJinSA
This will work: Sub InputDate() Dim dt As String dt = InputBox("Please enter the date") Worksheets("Summary").Range("A4") = dt End Sub Regards Alex "FJinSA" wrote: Hi all, I want to create an input box that asks users for the date to use in the spreasheet, then I want this date to populate to a worksheet named "Summary" in cell A4. Your help in appreciated... |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Works like a charm....thanks
"Alex" wrote: FJinSA This will work: Sub InputDate() Dim dt As String dt = InputBox("Please enter the date") Worksheets("Summary").Range("A4") = dt End Sub Regards Alex "FJinSA" wrote: Hi all, I want to create an input box that asks users for the date to use in the spreasheet, then I want this date to populate to a worksheet named "Summary" in cell A4. Your help in appreciated... |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try
Dim Res As String Res = InputBox("Enter a date") If IsDate(Res) Then Worksheets("Summary").Range("a4").Value = Res End If -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "FJinSA" wrote in message ... Hi all, I want to create an input box that asks users for the date to use in the spreasheet, then I want this date to populate to a worksheet named "Summary" in cell A4. Your help in appreciated... |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() This should do the trick: Sub InputDate() Sheets("Summary").Range("A4").Value = InputBox("Type the date below.", "Date", Date) End Sub FJinSA Wrote: Hi all, I want to create an input box that asks users for the date to use in the spreasheet, then I want this date to populate to a worksheet named "Summary" in cell A4. Your help in appreciated... -- Ikaabod ------------------------------------------------------------------------ Ikaabod's Profile: http://www.excelforum.com/member.php...o&userid=33371 View this thread: http://www.excelforum.com/showthread...hreadid=541200 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() This should do the trick: Sub InputDate() Sheets("Summary").Range("A4").Value = InputBox("Type the date below.", "Date", Date) End Sub FJinSA Wrote: Hi all, I want to create an input box that asks users for the date to use in the spreasheet, then I want this date to populate to a worksheet named "Summary" in cell A4. Your help in appreciated... -- Ikaabod ------------------------------------------------------------------------ Ikaabod's Profile: http://www.excelforum.com/member.php...o&userid=33371 View this thread: http://www.excelforum.com/showthread...hreadid=541200 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Not at all clear on use of variables and/or object variables | Excel Discussion (Misc queries) | |||
Value in a inputbox | Excel Programming | |||
Inputbox and Application.InputBox | Excel Programming | |||
inputbox help | Excel Programming | |||
inputbox | Excel Programming |