views:

95

answers:

2

I am creating a spread sheet to help ease the entry of data into one of our systems. They are entering inventory items into this spread sheet to calculate the unit cost of the item (item cost + tax + S&H). The software we purchased cannot do this.

Aan invoice can have one or more lines (duh!) and I calculate the final unit cost. This is working fine. I then want to take that data and create a CSV from that so they can load it into our inventory system. I currently have a second tab that is laid out like I want the CSV, and I do an equal cell (=Sheet!A3) to get the values on the "export sheet". The problem is when they save this to a CSV, there are many blank lines that need to be deleted before they can upload it. I want a file that only contains the data that is needed.

I am sure this could be done in VBA, but I don't know where to start or know how to search for an example to start. Any direction or other options would be appreciated.

+1  A: 

Look at Range.SpecialCells(xlBlanks).EntireRow.Delete, I think this is what you are looking for!

dwo
This is great, but is there a good tutorial on writing VBA to do something like this?
Mike Wills
A: 

The solution on this page worked best for me. I just had to modify it to allow it to work for what I needed.

Mike Wills