Inputbox as Date

A

andibevan

I need to create a user input form that the user can input a date in th
format 9/7/06 - i.e. dd/mm/yy and this is then copied to a cell in th
worksheet in the format = 09-Jul-04

I am stuck as I can only copy the text in the same format as inputted
i.e. it is chown as 9/7/06 which you can not perform date calculation
on.

Any help on this would be much appreciated

Ta

And
 
N

Norman Jones

Hi Andi,

res = InputBox("Enter date")
res = Format(res, "dd-mmm-yy")
MsgBox res
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

InputBox Date Value 7
Vba Date$ 1
VBA Calender Formatting Date Problems 2
Validation on InputBox() 5
Date format. 1
Delete rows based on date input 3
Copy the value in the Inputbox 3
Dates from InputBox 2

Top