Results 1 to 7 of 7

Thread: non-zero in excel

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    non-zero in excel

    sorry guys my mistake for the previous mail. The 'excel' generation is actually in .csv format. In other words, I use Open xxxxx ..(where xxx is .csv format) then using a string, i pass the string into the file row by row through a loop. This is not the normal excel application whereby i can use the .numberformat ...if thats the case how do i perform the insertion of zero number in front?

  2. #2
    Fanatic Member Dnereb's Avatar
    Join Date
    Aug 2005
    Location
    Netherlands
    Posts
    863

    Re: non-zero in excel

    Answered the question in your previous thread
    why can't programmers keep and 31 Oct and 25 dec apart. Why Rating is Useful
    for every question you ask provide an answer on another thread.

  3. #3
    PowerPoster
    Join Date
    Nov 2002
    Location
    Manila
    Posts
    7,629

    Re: non-zero in excel

    the cell should be defined as containing text data type... otherwise if its interpreted as numeric, the leading zero is automatically dropped.

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    Re: non-zero in excel

    but how do I make use of the .numberformat? I mean the current codes Open and Print and close the file, insert data and close,without using the object like xlapp. etc.?
    Last edited by Goh; Oct 4th, 2005 at 02:20 AM.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    Re: non-zero in excel

    I realise that if the data has at least alph. the 0 in front will appear..whereas if all numbers , it will disappear.

  6. #6

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2004
    Posts
    908

    Re: non-zero in excel

    is there anything i can add in as a alph. but is invisible when input to the cell ?

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: non-zero in excel

    Excel question moved to Office Development.

Posting Permissions

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



Click Here to Expand Forum to Full Width