Help needed with textbox formatting in Excel 2000

  • Thread starter Thread starter JIMBROOKS
  • Start date Start date
J

JIMBROOKS

I have created a userform containing several textboxes linked to cells on
sheet1 of a workbook. The cells on the worksheet are formatted for Currency
,specifically £ to two decimal places. My problem is when I change the
values on the worksheet the prices appear on the userform as a number, for
example £54.00 on the worksheet appears as 54 in the linked textbox so my
question is, is there a way to set a currency format in a text box by using
code as I can't find a way by using the textbox properties?
Here's hoping some knowlegable person can head me in the right
direction. Thanks in advance.
Happy New Year to all
Jim Brooks
 
Jim,

Try either

Textbox1.Text =
Format(Worksheets("Sheet1").Range("A1").Value,"£#,##0.00")

or

Textbox1.Text = Worksheets("Sheet1").Range("A1").Text

if the cell is already formatted.

--

HTH

RP
(remove nothere from the email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top