+ Reply to Thread
Results 1 to 14 of 14

Number in cell formated as text

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Number in cell formated as text

    Hi,

    I´m using a userform to transfer data to sheet 1 in my workbook.
    In row 8 it´s transfers a number, but I get a warning that says the cell is formated as text.

    I can change this manuell bu converting from text to number, but I need it to register the data as it surpose to be.

    This is the code I use to transfer the data.

    Please Login or Register  to view this content.
    Regards
    Øystein Breivik

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,463

    Re: Number in cell formated as text

    try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    or:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Re: Number in cell formated as text

    TMShucks,

    Thanks for youre reply, but that returns the error "Type mismatch"

    Regards
    Øystein

  4. #4
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Re: Number in cell formated as text

    Hello,

    Bump..... Anybody?

    Regards
    Øystein

  5. #5
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Re: Number in cell formated as text

    Hello,

    Is there anybode that can provide me a solution for this problem?

    Regards
    Øystein
    Last edited by Cutter; 07-23-2012 at 09:02 AM. Reason: Removed repeat of first post

  6. #6
    Forum Expert
    Join Date
    09-27-2011
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    1,312

    Re: Number in cell formated as text

    Hi the idea of TMShuck should work maybe send sample of workbook
    Regards

    tom1977

    If You are satisfied with my solution click the small star icon on the left to say thanks.

  7. #7
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Number in cell formated as text

    try
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Re: Number in cell formated as text

    nilem,

    Thanks for youre reply, The second solution you gave me solved the problem

    I have tryed to study several codes that I have been provided, but I cant figure out how it works.

    What does exsample Dim, As Integer or As Double mean, and when are they suppose to be used?

    Regards
    Øystein Breivik

  9. #9
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Number in cell formated as text

    Hi, Øystein . You can read about declaring variables in the Help for VBA or, for example, here.

  10. #10
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Number in cell formated as text

    @Oeysbrei

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself.
    Thanks.

  11. #11
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Re: Number in cell formated as text

    nilem,

    Thanks for the tip
    A lot of god reading there, so hopefully it will be some quiet days at work that I can use for privat study

    Regards
    Øystein Breivik

    ---------- Post added at 08:30 PM ---------- Previous post was at 08:24 PM ----------

    Cutter,

    I always mark my threads as solved, but maybe I was a little slow this time.
    I will keep that in mind next time

    Regards
    Øystein Breivik

  12. #12
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Re: Number in cell formated as text

    Hi,

    I thought I had this working as I wanted, but I sholdent be that lucky.
    I have attached the workbook and a PDF file that explanes how it work.

    Any help is much appreciated

    Best regards

    Øystein BreivikArbeidslogg Rev.1.xlsmDok1.pdf

  13. #13
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Number in cell formated as text

    for Registrering form
    Please Login or Register  to view this content.
    for UserForm1
    Please Login or Register  to view this content.

  14. #14
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Bergen, Norway
    MS-Off Ver
    MS 365 Subscription
    Posts
    323

    Re: Number in cell formated as text

    nilem,

    Thank you, now I will finaly mark this one as solved

    Regards
    Øystein Breivik

+ 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