+ Reply to Thread
Results 1 to 3 of 3

Entering worksheet data via user form

  1. #1
    Registered User
    Join Date
    04-26-2008
    Posts
    11

    Entering worksheet data via user form

    Hi,

    I have difficulties with entering data into a worksheet from a user form.

    The example in the attached file illustrates this. When adjusting the value in the user form with the spin button it seems as the text box-value is treated as text?

    When writing directly in the text box, lets say 16,3, it is saved in the cell K3 as text?

    Any suggestions are wellcome!
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Tellus,

    All values going into and coming out of a TextBox control are text. You need to make the needed conversions if the data is to be treated as another data type. The modified code below has already been added to your workbook, which is attached.

    [b]Modified UserForm Event Code[/]
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-26-2008
    Posts
    11
    Dear Leith,

    you just made my day! You did not only solved my problem but also made me understand why some previous work have failed.

    Thanks a lot,
    Fred Tellus

+ 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