|
-
Oct 4th, 2005, 01:48 AM
#1
Thread Starter
Fanatic Member
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?
-
Oct 4th, 2005, 01:58 AM
#2
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.
-
Oct 4th, 2005, 02:00 AM
#3
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.
-
Oct 4th, 2005, 02:08 AM
#4
Thread Starter
Fanatic Member
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.
-
Oct 4th, 2005, 03:00 AM
#5
Thread Starter
Fanatic Member
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.
-
Oct 4th, 2005, 03:42 AM
#6
Thread Starter
Fanatic Member
Re: non-zero in excel
is there anything i can add in as a alph. but is invisible when input to the cell ?
-
Oct 4th, 2005, 06:50 AM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|