I have an Excel workbook with several sheets and I am trying to build a macro that will grab selected info from each sheet and write a summary sheet. I am new to this and built a simple routine to see if I could grab a specific cell and it doesn't work. The output from message box tells me that I am paging through each sheet ok but the "B4" cell doesnt get printed. Instead I get the "B4" Cell of the active sheet only. What am I doing wrong ? Here is the code. Thanks for any help.
Sub Test()
Dim Item As Worksheet
For Each Item In ActiveWorkbook.Worksheets
Range("B4").Select
MsgBox "Sheet= " & Item.Name & " Cell= " & SelectedRange
Next Item
End Sub
Sub Test()
Dim Item As Worksheet
For Each Item In ActiveWorkbook.Worksheets
Range("B4").Select
MsgBox "Sheet= " & Item.Name & " Cell= " & SelectedRange
Next Item
End Sub