D
ddmchaas
When importing a .CSV file and after executing a "text to column"
macro, a formula is copied down every row in column L which analyzes
key cells in the row itself and the row below to determine if the row
should be deleted or kept as pertinent to performing further analysis
and places the word "keep" or "delete" in the cell. Then an operator
manually deletes the rows identified as such. My question is how do I
begin to convert this complex spreadsheet formula into appropriate VBA
statements to duplicate the process and eliminate the need for the
spreadsheet formula and the manual operation? Here's the formula:
=IF(OR(LEFT(B8,4)="tem:",LEFT(B8,4)="Job:"),"KEEP",IF(OR(CELL("TYPE",A8)="V",CELL("type",A7)="v"),"KEEP",IF(LEFT(B9,4)="Job:","KEEP","delete")))
TIA for any help...
macro, a formula is copied down every row in column L which analyzes
key cells in the row itself and the row below to determine if the row
should be deleted or kept as pertinent to performing further analysis
and places the word "keep" or "delete" in the cell. Then an operator
manually deletes the rows identified as such. My question is how do I
begin to convert this complex spreadsheet formula into appropriate VBA
statements to duplicate the process and eliminate the need for the
spreadsheet formula and the manual operation? Here's the formula:
=IF(OR(LEFT(B8,4)="tem:",LEFT(B8,4)="Job:"),"KEEP",IF(OR(CELL("TYPE",A8)="V",CELL("type",A7)="v"),"KEEP",IF(LEFT(B9,4)="Job:","KEEP","delete")))
TIA for any help...