Been stuck on this for a while now. Far too long for something this simple.
I'm just trying to copy the contents of an autofiltered range into a msgbox.
This is what I was trying to get to work:
^^ This works, but gives me a msgbox with all of the range's cell's contents. I just need the ones which are visible.
I've tried to insert .SpecialCells(xlCellTypeVisible) into the code, but it doesn't work the way I expect it to.
Any thoughts, i am sure its something simple as always.
I'm just trying to copy the contents of an autofiltered range into a msgbox.
This is what I was trying to get to work:
Code:
MsgBox Join(Application.WorksheetFunction.Transpose(Range("B4:B" & Cells(Rows.Count, "B").End(xlUp).Row).Value), Chr$(10))
^^ This works, but gives me a msgbox with all of the range's cell's contents. I just need the ones which are visible.
I've tried to insert .SpecialCells(xlCellTypeVisible) into the code, but it doesn't work the way I expect it to.
Any thoughts, i am sure its something simple as always.