Hi,
I have the following code,
if there is a zero in the range M1, I want to be able to halt the code, and a Pop up message, There is no data for this range.
Sub CopyFormula()
Worksheets("Finance").Select
NumberOfCopies = Sheets("Details").Range("M1").Value
With Worksheets("Finance").Range("C8:M8")
.Copy .Offset(1).Resize(NumberOfCopies, 1)
End With
Any help appreciatted.
Cfer
End Sub
I have the following code,
if there is a zero in the range M1, I want to be able to halt the code, and a Pop up message, There is no data for this range.
Sub CopyFormula()
Worksheets("Finance").Select
NumberOfCopies = Sheets("Details").Range("M1").Value
With Worksheets("Finance").Range("C8:M8")
.Copy .Offset(1).Resize(NumberOfCopies, 1)
End With
Any help appreciatted.
Cfer
End Sub