Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Currency format in visual basic text box

Hi,

This is probably a very silly questiong but i can't find how to solve it.

I have made a form that you enter in data and it puts it into cells on a
spreadsheet, some of it is a numerical amount. These amounts are then
referred to in other formulas. Despite the cells being in the 'accounting'
format, they still appear to be just in text, and not even me reformatting
the cell will chage them to any kind of number.

Is there a way of formatting the textbox, in the visual basic form, to be a
number? or some piece of code to enter it as a number? The code i am
currently using is as follows:

Sheets("in").Range("i7").Value = net

'net' being the name of the text box that the amount is entered into.

I hope someone could please help.
Thanks
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
visual basic user form date format dd/mm/yy not mm/dd/yy DarrenO Excel Discussion (Misc queries) 1 March 28th 07 01:56 AM
Visual Basic and SP2 JessJ Excel Discussion (Misc queries) 2 October 6th 05 12:17 PM
changing the visual basic in office 2003 to visual studio net bigdaddy3 Excel Discussion (Misc queries) 1 September 13th 05 10:57 AM
Visual Basic Micos3 Excel Discussion (Misc queries) 9 June 28th 05 01:41 PM
Visual Basic Help Duncan Smith Excel Discussion (Misc queries) 1 December 3rd 04 09:13 AM


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