VBA, need to replace values of specific number of cells in a row(not the whole row), if the value of the first cell is 0. For example if the column A(SR NO.1) has a value 0 in any cell then the value of cells in that particular row up to column D needs to be replaced with a blank. Similarly in the Column E if the value of any cell is 0 then the value of cells in that row up to column H needs to be replaced with blank. This format is going to help with my Dataload implementation. A VBA code to counter this problem would be really helpful.
Book1 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | SR NO. 1 | DATA | CHARGES | AUX | SR NO.2 | DATA | CHARGES | AUX | ||
2 | 0 | RANDOM | 0 | 0 | 1 | SPECIFIC | 100 | 1 | ||
3 | 0 | RANDOM | 0 | 0 | 0 | RANDOM | 0 | 0 | ||
4 | 1 | SPECIFIC | 100 | 1 | 2 | MORE SPECIFIC | 200 | 2 | ||
5 | 0 | RANDOM | 0 | 0 | 0 | RANDOM | 0 | 0 | ||
6 | 1 | SPECIFIC | 100 | 1 | 1 | SPECIFIC | 100 | 1 | ||
Sheet1 |