Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default InputBox Variables

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 493
Default InputBox Variables

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default InputBox Variables

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...



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default InputBox Variables

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...

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default InputBox Variables


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default InputBox Variables


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
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
Not at all clear on use of variables and/or object variables JMay-Rke Excel Discussion (Misc queries) 11 July 4th 08 06:36 PM
Value in a inputbox Alvin Hansen[_2_] Excel Programming 3 February 22nd 05 08:15 PM
Inputbox and Application.InputBox Maria[_7_] Excel Programming 1 September 20th 04 11:36 AM
inputbox help lothario[_60_] Excel Programming 4 December 7th 03 12:26 AM
inputbox defj Excel Programming 4 November 26th 03 10:25 PM


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

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"