Hi guys
I have this print macro up and running.
Basically, it picks up a number in a column and puts it into a certain cell in another sheet. The sheet populates itself and then prints out autmatically.
However, it picks up 111 rows and prints them out... sometimes I don't want all rows and need to macro to stop when say "x" is found in a row.
Is there anyway I can change my current macro to incorporate this?
Here is the current code:
Sub Print_Other_Default()
For r = 4 To 115
Sheets("Other Print").Range("G4").Value = Cells(r, 1).Value
Sheets("Other Print").PrintOut
Next r
End Sub
Thanks
Dan
I have this print macro up and running.
Basically, it picks up a number in a column and puts it into a certain cell in another sheet. The sheet populates itself and then prints out autmatically.
However, it picks up 111 rows and prints them out... sometimes I don't want all rows and need to macro to stop when say "x" is found in a row.
Is there anyway I can change my current macro to incorporate this?
Here is the current code:
Sub Print_Other_Default()
For r = 4 To 115
Sheets("Other Print").Range("G4").Value = Cells(r, 1).Value
Sheets("Other Print").PrintOut
Next r
End Sub
Thanks
Dan