Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21847

How to set value for fields in CSV file to zero using VBScript?

$
0
0
Dear all,

I have a CSV file contain many fields. All fields have value. However, I want to set the value for fields 24 until 26 to 0. How can i do that by using VBScript? I want the script to force the field value to be 0..and fyi, my CSV file have header in the first row. Thanks in advance for any help. Below i illustrate my original csv file and the expected output. Thanks in advance for any help.

Original csv
Field1, Field2,....,Field24, Field25, Field26, Field27
"20120803","ABC",...,9.032,24.52,6.325,21.12
"20120803","ABC",...,5.242,17.53,7.005,21.12

Expected output csv
Field1, Field2,....,Field24, Field25, Field26, Field27
"20120803","ABC",...,0,0,0,21.12
"20120803","ABC",...,0,0,0,21.12

Viewing all articles
Browse latest Browse all 21847

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>