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


hi i have a textbox which a user enters in a money value however when
click the ok button and submit that value to a sheet it pastes it a
text and does not put the value as £. I want it to display on the shee
as £13.99

--
funkymonkU
-----------------------------------------------------------------------
funkymonkUK's Profile: http://www.excelforum.com/member.php...fo&userid=1813
View this thread: http://www.excelforum.com/showthread.php?threadid=37412

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default currency and textbox.


Hi funkymonk,

Use this code for setting the date in a cell from the userform textbox

Private Sub CommandButton1_Click()

dt = Split(TextBox1, "/")
myDt = DateValue(dt(1) & "/" & dt(0) & "/" & dt(2))
Sheet1.Range("A1").Value = myDt
Sheet1.Range("A1").NumberFormat = "dd/mm/yy"

End Sub


Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=374123

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default currency and textbox.


how do i use this with range a1 being a static range

--
funkymonkU
-----------------------------------------------------------------------
funkymonkUK's Profile: http://www.excelforum.com/member.php...fo&userid=1813
View this thread: http://www.excelforum.com/showthread.php?threadid=37412

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default currency and textbox.


What is the cell in your case where you put the date...?
can you show your code where you put the textbox into the cell


Manges

--
mangesh_yada
-----------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...fo&userid=1047
View this thread: http://www.excelforum.com/showthread.php?threadid=37412

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
currency and textbox. Norie Excel Programming 6 May 26th 05 01:19 PM
currency and textbox. mangesh_yadav[_214_] Excel Programming 4 May 26th 05 12:51 PM
currency and textbox. funkymonkUK[_5_] Excel Programming 0 May 26th 05 12:37 PM
currency and textbox. Leith Ross[_15_] Excel Programming 0 May 26th 05 12:36 PM
currency and textbox. funkymonkUK[_7_] Excel Programming 0 May 26th 05 12:36 PM


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