Hi, I'm trying to teach myself to write in VBA but many hours have shown this problem is way above my abilities at the moment. I have a very long list in a worksheet where column F contains one or more pipe diameter, and if there is more than one diameter for that particular line the cell contains multiple values separated by a comma.
I would like to use a macro to look for cells that contain more than one value, copy that entire row and then insert the copied rows below as many times as there are pipe diameters, e.g. a row with cell F1 containing value "2, 4, 6" would be copied twice below. If it helps, I've written a formula that counts the number of commas in each cell (i.e. the number of times to insert rows below the original) which is placed in column B.
Could anyone help me with this?
I would like to use a macro to look for cells that contain more than one value, copy that entire row and then insert the copied rows below as many times as there are pipe diameters, e.g. a row with cell F1 containing value "2, 4, 6" would be copied twice below. If it helps, I've written a formula that counts the number of commas in each cell (i.e. the number of times to insert rows below the original) which is placed in column B.
Could anyone help me with this?