Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default macros or input box

i wall i want to do is have the following msg come up:
Please enter the date you want to use in this format: ?/??/??
and have the data put into a cell of my choice

help please
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default macros or input box

ans = Inputbox ("Please enter the date you want to use (in this format
dd/mm/yy):"
Range("A1").Value = Format(ans,"dd/mm/yy")

change the format to suit


--

HTH

RP
(remove nothere from the email address if mailing direct)


"ronald" wrote in message
...
i wall i want to do is have the following msg come up:
Please enter the date you want to use in this format: ?/??/??
and have the data put into a cell of my choice

help please



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default macros or input box

Look at Data validation. It can generate a message when a person selects a
cell.

If you want to run a macro

Sub Macro1()
Dim as as String
ans = InputBox("Please enter date you want to use in this format:
mm/dd/yy")
if isdate(ans) then
Range("B9").Value = Format(cDate(ans),"mm/dd/yyyy")
end if
End Sub

--
Regards,
Tom Ogilvy


"ronald" wrote in message
...
i wall i want to do is have the following msg come up:
Please enter the date you want to use in this format: ?/??/??
and have the data put into a cell of my choice

help please



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
lotus uses {?} for input, what does excel use (macros) jmoore New Users to Excel 2 December 31st 07 11:48 PM
input in number form is being multiplied by 1000 when i input. jweinograd Excel Discussion (Misc queries) 4 April 16th 07 11:18 PM
How do I add input data in the input ranges in drop down boxes. oil_driller Excel Discussion (Misc queries) 1 November 9th 05 10:31 PM
How can I validate data input by macros? ewan72 Excel Programming 2 February 23rd 05 04:13 PM
CODE to select range based on User Input or Value of Input Field Sandi Gauthier Excel Programming 4 December 8th 03 03:22 PM


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