May 16, 2007 #1 Aeneas Programmer Sep 18, 2003 25 CA Why does: Code: Sheets("Sheet1").Select Range("A1").Value = Sheets("Sheet2").Range("B2").Value work, yet: Code: Sheets("Sheet2").Select Sheets("Sheet1").Range("A1").Value = Range("B2").Value does not work?
Why does: Code: Sheets("Sheet1").Select Range("A1").Value = Sheets("Sheet2").Range("B2").Value work, yet: Code: Sheets("Sheet2").Select Sheets("Sheet1").Range("A1").Value = Range("B2").Value does not work?
May 16, 2007 #2 PHV MIS Nov 8, 2002 53,708 FR Bottom line: allways use full qualified ranges. What happens if you replace this: Sheets("Sheet2").Select with this ? Sheets("Sheet2").Activate Hope This Helps, PH. FAQ219-2884 FAQ181-2886 Upvote 0 Downvote
Bottom line: allways use full qualified ranges. What happens if you replace this: Sheets("Sheet2").Select with this ? Sheets("Sheet2").Activate Hope This Helps, PH. FAQ219-2884 FAQ181-2886
May 16, 2007 Thread starter #3 Aeneas Programmer Sep 18, 2003 25 CA What happens is it works. Wow, that's awesome. Thanks! Upvote 0 Downvote
May 16, 2007 #4 S SkipVought Programmer Dec 4, 2001 47,492 US Hi, AVOID using the Selct and Activate methods. Code: Sheets("Sheet1").Range("A1").Value = Sheets("Sheet2").Range("B2").Value Skip, [red][/red] Upvote 0 Downvote
Hi, AVOID using the Selct and Activate methods. Code: Sheets("Sheet1").Range("A1").Value = Sheets("Sheet2").Range("B2").Value Skip, [red][/red]