+ Reply to Thread
Results 1 to 2 of 2

value in userform

  1. #1
    antonov
    Guest

    value in userform

    hello again everybody. I need some values from my userform to my sheet to be
    always in Euros. Even though I've formatted the receiving cells to
    currency (euro) this doesn't happen. Can somebody please help?
    thanks



  2. #2
    Flemming Dahl
    Guest

    Re: value in userform

    Hi

    You properly have the value in a TextBox, which returns a string. A string
    is a text and not a value, so you need to convert the text to a value before
    you sendt it to the worksheet.
    It could be something ike this...

    If IsNumeric(TextBox1.Text) Then Range("A1").Value = Cdbl(TextBox1.Text)

    There are lots of ways to do this.
    Cheers,
    Flemming


    "antonov" <antonov@dds.nl> wrote in message
    news:OShtf.10328$av6.5940@tornado.fastwebnet.it...
    > hello again everybody. I need some values from my userform to my sheet to
    > be
    > always in Euros. Even though I've formatted the receiving cells to
    > currency (euro) this doesn't happen. Can somebody please help?
    > thanks
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1