I found Von Pookie's code from 12/16/05 and it does exactly what I need. But I would like to be able to be prompted for the range to copy. I can go to the code and change ("A1") to the range I need ("A92:L94") for example The column needed will always be A & L but the rows will change each time.
How can I have the macro ask me for the first row and I answer 92 or some other number
Then ask me for the last row and I answer 94 or some other number?
Von Pookie Code:
Sub test()
Dim ws As Worksheet, PasteRng As Range
For Each ws In ThisWorkbook.Worksheets
If ws.Name <> "Summary" Then
Set PasteRng = Sheets("Summary").Range
("65536").End(xlUp).Offset(1,0)
With ws
.Range("A1").Copy Destination:=PasteRng
End With
End If
Next ws
End Sub
I'm sure the information I need is here somewhere. I'm just not smart enough to know what to search for.
My next step would be to only copy the row to "summary" when there is a value in column G of the above named range.
I haven't even begun to try and figure that out - and probably wouldn't be able to anyway.
Thanks
I hope this did not go twice. When I submited it the first time it went back to where I log on, and did not seem to post.
How can I have the macro ask me for the first row and I answer 92 or some other number
Then ask me for the last row and I answer 94 or some other number?
Von Pookie Code:
Sub test()
Dim ws As Worksheet, PasteRng As Range
For Each ws In ThisWorkbook.Worksheets
If ws.Name <> "Summary" Then
Set PasteRng = Sheets("Summary").Range
("65536").End(xlUp).Offset(1,0)
With ws
.Range("A1").Copy Destination:=PasteRng
End With
End If
Next ws
End Sub
I'm sure the information I need is here somewhere. I'm just not smart enough to know what to search for.
My next step would be to only copy the row to "summary" when there is a value in column G of the above named range.
I haven't even begun to try and figure that out - and probably wouldn't be able to anyway.
Thanks
I hope this did not go twice. When I submited it the first time it went back to where I log on, and did not seem to post.