Originally Posted by
MarvinP
Hi new.vbacoder,
I do similar CSV imports. I import the CSV file into a new workbook and then code to copy and paste the parts I want into the workbook that has the formulas in it. This is one solution.
On other CSV imports I code a formula into the CSV file and do calculations before I copy and paste it to my master workbook.
See
http://excel.itags.org/microsoft-excel/38414/ for how to code VBA to put an Excel formula into a cell.
Thanks for the post. I'm not sure that is quite what I'm trying to accomplish. For example, the csv file would look just like the Data Collection Input sheet, minus any formatting. I want to bring in everything in column B and C from the csv file, but only if the cell is shaded yellow in the Data Collection Input sheet. The code as I have it will overwrite the sum formula in cell D9, D18, D27, etc.
I have included my code below, with where I think the paste only into cells with a background color. I just can't figure out what the code should be.
Bookmarks