Hi,
I have this Macro command:
Sub PrtLoop()
Dim bResponse As Boolean, r As Range, c As Range
On Error Resume Next
Set r = Application.InputBox("Select the cells in Project Data to process", Type:=8)
On Error GoTo 0
If r Is Nothing Then Exit Sub
With Sheets("SOE Form")
For Each c In r
.Range("A1").Value = c.Value
.PrintOut
Next c
End With
End Sub
I just want to skip the Line in RED... Instead of clicking and dragging the cell range, I would like it to auto select the cell from A6 down to any cell that has more than 0 value. if it found a zero, the macro will end.
I have been trying to find the solution for 2 days, I can't seem to find a way. Sorry to bother you with this.
Thank you in Advance for the Help...
I have this Macro command:
Sub PrtLoop()
Dim bResponse As Boolean, r As Range, c As Range
On Error Resume Next
Set r = Application.InputBox("Select the cells in Project Data to process", Type:=8)
On Error GoTo 0
If r Is Nothing Then Exit Sub
With Sheets("SOE Form")
For Each c In r
.Range("A1").Value = c.Value
.PrintOut
Next c
End With
End Sub
I just want to skip the Line in RED... Instead of clicking and dragging the cell range, I would like it to auto select the cell from A6 down to any cell that has more than 0 value. if it found a zero, the macro will end.
I have been trying to find the solution for 2 days, I can't seem to find a way. Sorry to bother you with this.
Thank you in Advance for the Help...