Hey All,
Quick question, I have some very basic code copying and pasting from one tab to another, however, for some reason, the Copy doesn't work, unless I'm looking at that tab. If I'm looking at another tab, nothing get's copied. But when I'm looking at the source tab, it works perfectly. Any thoughts? Does End(xlUp) not work unless you are looking at it??
Again, the code works perfect if I'm currently on the "Teams" tab. But if I execute the macro from then Teams Grid tab, nothing copies over.
Thoughts?
Thanks!
Alex
Quick question, I have some very basic code copying and pasting from one tab to another, however, for some reason, the Copy doesn't work, unless I'm looking at that tab. If I'm looking at another tab, nothing get's copied. But when I'm looking at the source tab, it works perfectly. Any thoughts? Does End(xlUp) not work unless you are looking at it??
Code:
Set wsTeams = Sheets("Teams")
Set wsResult = Sheets("Teams Grid")
wsTeams.Range(Range("A1"), Range("B" & Rows.Count).End(xlUp)).Copy
wsResult.Range("B2").PasteSpecial Paste:=xlPasteAll, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=True
Again, the code works perfect if I'm currently on the "Teams" tab. But if I execute the macro from then Teams Grid tab, nothing copies over.
Thoughts?
Thanks!
Alex