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.


Use .value when you are putting the textbox value into the cell, for
e.g.

Sheet1.Range("A1") = TextBox1.Value

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

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


Hello Funkymonk,

If you have the TextBox linked to the Worksheet through the
ControlSource property, then yes, the code will display the entry in a
Currency format. You must first make the code changes for it work.

Sincerely,
Leith Ross


--
Leith Ross
------------------------------------------------------------------------
Leith Ross's Profile: http://www.excelforum.com/member.php...o&userid=18465
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.


Formula:
--------------------
mangesh_yadav Wrote:
Use .value when you are putting the textbox value into the cell, for
e.g.

Sheet1.Range("A1") = TextBox1.Value

Mangesh

--------------------


This seemed to work thanks Mangesh


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

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


Hi Funkymonk,

A simple statement like this should work:
ActiveCell.Offset(0, 23).Value = TextBox5.Value
it is working for me.

Can you tell me how the user is expected to enter the date in this box.
Probably of the user is trying to enter in the dd/mm/yyyy format he
would face problems as excel cannot recognise these formats

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

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


Hi funkymonk,

this should solve your problem

Sheet1.Range("A1") = DateValue(TextBox1)

So even if textbox1 has a date like 22/2/2005, excel will correctly
interprete it. But I guess the probelm will remain in dates like
5/2/2005

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

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. funkymonkUK[_5_] Excel Programming 0 May 26th 05 12:37 PM
Formatting textbox currency on userform gki[_11_] Excel Programming 2 July 27th 04 01:30 PM
Textbox with currency format C. Thies Excel Programming 2 July 2nd 04 01:15 AM
Formatting for Numbers & Currency in textbox dugless Excel Programming 2 December 10th 03 08:15 AM
Textbox on a userform.. dispaly as currency John Wilson Excel Programming 0 September 10th 03 10:54 PM


All times are GMT +1. The time now is 11:21 AM.

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"