ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Inputbox as Date (https://www.excelbanter.com/excel-programming/303659-inputbox-date.html)

andibevan

Inputbox as Date
 
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

--
Message posted from http://www.ExcelForum.com


Norman Jones

Inputbox as Date
 
Hi Andi,

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

---
Regards,
Norman




"andibevan " wrote in message
...
I need to create a user input form that the user can input a date in the
format 9/7/06 - i.e. dd/mm/yy and this is then copied to a cell in the
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 calculations
on.

Any help on this would be much appreciated

Ta

Andi


---
Message posted from http://www.ExcelForum.com/




Ron de Bruin

Inputbox as Date
 
Hi andibevan

Maybe you like this
http://www.rondebruin.nl/calendar.htm

with this format
ActiveCell.NumberFormat = "dd/mmm/yy"


--
Regards Ron de Bruin
http://www.rondebruin.nl


"andibevan " wrote in message ...
I need to create a user input form that the user can input a date in the
format 9/7/06 - i.e. dd/mm/yy and this is then copied to a cell in the
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 calculations
on.

Any help on this would be much appreciated

Ta

Andi


---
Message posted from http://www.ExcelForum.com/




andibevan

Inputbox as Date
 
Thanks guys - problem now solved :

--
Message posted from http://www.ExcelForum.com



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com