i have created a pricing form and in my code at the end i have
got the following code
'to delete rows when options not choosen in order to tidy up!
'this has to first sort the data to get all the blank rows together
Range("A5:C15").Select
Selection.Sort Key1:=Range("A5"), Order1:=xlAscending,
Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False,
Orientation:=xlTopToBottom, _
DataOption1:=xlSortNormal
Range("D15").Select
Do Until ActiveCell.Value = ""
If ActiveCell.Value = 0 Then
ActiveCell.EntireRow.Delete shift:=xlUp
ActiveCell.Offset(-1, 0).Select
Else
ActiveCell.Offset(-1, 0).Select
End If
Loop
'this worked fine until i amended the template and merged column a
and b together, the coding fell over and said something about the
merged fields have to be the same size, i made sure they were and it
still doesnt work.