Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default 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/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Inputbox as Date

Thanks guys - problem now solved :

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

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
InputBox GeorgeJ Excel Discussion (Misc queries) 5 July 12th 07 01:20 AM
Inputbox with VBA Jeff Excel Discussion (Misc queries) 3 January 19th 06 05:18 PM
Date from InputBox Michael Excel Programming 3 May 26th 04 01:11 PM
InputBox Hargrove Excel Programming 2 April 29th 04 07:43 PM
inputbox Lawson Excel Programming 2 October 7th 03 08:58 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"