+ Reply to Thread
Results 1 to 9 of 9

My numbers keep turning into text and I dont know why

Hybrid View

  1. #1
    Registered User
    Join Date
    12-18-2011
    Location
    Back in Warwickshire
    MS-Off Ver
    365
    Posts
    59

    My numbers keep turning into text and I dont know why

    Hi All

    I have a project on the go which will, when finished, calculate the stake of a string of correct score odds

    My problem at the moment is that the data which is put into the sheet from a form is forfatted as text and not a number

    I have tried the clean function but subsequent formulas dissapear into the void of space

    Has anyone any pointers as to why this should happen and suggest a cure
    James

    correct score stake calculatorv1.3.1.xlsm
    Last edited by shakey775; 01-14-2012 at 08:26 AM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: My numbers keep turning into text and I dont know why

    Hi James,

    It's done.

    See the attached file where the form has start fetching numbers.

    
    Private Sub CommandButton1_Click()
    --
    --
        Sheet2.Range("A1") = TextBox1.Value
    --
    --
    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Valued Forum Contributor
    Join Date
    08-22-2011
    Location
    Auckland
    MS-Off Ver
    Excel 2019
    Posts
    716

    Re: My numbers keep turning into text and I dont know why

    I just had a quick play with it & it was OK here. i had no idea what it is supposed to do, I still don't, but it all stayed as numbers

  4. #4
    Registered User
    Join Date
    12-18-2011
    Location
    Back in Warwickshire
    MS-Off Ver
    365
    Posts
    59

    Re: My numbers keep turning into text and I dont know why

    Hi
    I dont understand what you have done _ has it changed from my version?
    but thank you it seems to work fine

    does it have something to do with the lines above and below the code line?
    James

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: My numbers keep turning into text and I dont know why

    Thanks James and Philb

    It has nothing to do with the above code lines which I have provided, rather these are the area in your code where I have done the correction and posted here to help you quickly understand / identify the pain area.

    Cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  6. #6
    Registered User
    Join Date
    12-18-2011
    Location
    Back in Warwickshire
    MS-Off Ver
    365
    Posts
    59

    Re: My numbers keep turning into text and I dont know why

    Ah Ha
    Just put them side by side

    ................ its the value bit i missed off

    presumably this will also work for the combo boxes

    Thanks matey
    you have duly been awarded a click of the star

  7. #7
    Registered User
    Join Date
    12-18-2011
    Location
    Back in Warwickshire
    MS-Off Ver
    365
    Posts
    59

    Re: My numbers keep turning into text and I dont know why

    how do i mark this post solved

  8. #8
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: My numbers keep turning into text and I dont know why

    Thanks Shakey (James)

    Cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: My numbers keep turning into text and I dont know why

    Hi Shakey,

    Below is the extract from Forum Rules (Rule #9) which suggests how to mark any post as solved.

    "
    9. Acknowledge the responses you receive, good or bad. If your problem is solved, please say so clearly, and mark your thread as Solved: Click the Edit button on your first post in the thread, Click Go Advanced, select [SOLVED] from the Prefix dropdown, then click Save Changes. If more than two days have elapsed, the Edit button will not appear -- ask a moderator to mark it.
    "

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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