![]() |
How to create macro to change value in CSV.
Dear all,
I have a CSV file contain many fields and all fields have value (positive & negative values). I have 2 questions he 1) This file is created on Friday. So the date in Field1 is Friday's date. I want to change the date to Saturday date. How can i change it using macro? 2) I want to set the value for fields 24 until 26 to 0. I want the script to force the field value to be 0. How can i do that by using macro?..and fyi, my CSV file have header in the first row. Below i illustrate my original csv file and the expected output. 3) How can i automate the macro to run every Friday afternoon? 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,-1.53,7.005,21.12 Expected output csv Field1, Field2,....,Field24, Field25, Field26, Field27 "20120804","ABC",...,0,0,0,21.12 "20120804","ABC",...,0,0,0,21.12 |
All times are GMT +1. The time now is 12:04 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com