Consulting

Results 1 to 2 of 2

Thread: How to access the literal content of a cell, regardless datatype

  1. #1
    VBAX Regular
    Joined
    May 2009
    Location
    Johannesburg
    Posts
    69
    Location

    How to access the literal content of a cell, regardless datatype

    Hi All,

    I am trying to access a column in Excel, where the content has been literally typed as "'04505", with the leading ' to make numbers with leading zeros show those zeros.

    I am uploading this column's data into a database, but when it has been uploaded, the data in the DB Table truncated the leading zero. How can I access the contents of an Excel worksheet Cell "as-is"?

    I tried formatting these cells as "Text", but it did not work. The leading zeros are still being truncated.
    Deyken
    DeezineTek
    South Africa

  2. #2
    VBAX Master Aflatoon's Avatar
    Joined
    Sep 2009
    Location
    UK
    Posts
    1,720
    Location
    What field type is the database field? I would suspect numeric.
    Be as you wish to seem

Posting Permissions

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