Re: Copying cells between sheets
- From: "Roger Whitehead" <anon@xxxxxxxxxxxxx>
- Date: Sat, 27 Oct 2007 16:35:43 +0100
Sheets("Sheet1").Range("A5:E5").Copy (Sheets("Sheet2").Range("A10:E20"))
or
Sheets(1).Range("A5:E5").Copy (Sheets(2).Range("A10:E20"))
Works for me.
--
HTH
Roger
Shaftesbury (UK)
(Office 2003, Win XP/SP2)
"Mark Hezz" <Mark Hezz@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:43B02A71-70A4-4EB8-8DC8-E6A40EB484A0@xxxxxxxxxxxxxxxx
Hi!
When I try to write this command in a macro :
sheets("S1").range("A5:E5).copy (sheets("S2").range("A10:E20"))
occurs an Error "Run-time error '1004': Impossible to execute the copy
method in range class". It seems to me the copy command only works well
when
target *** is the current ***, I think... (It works when I try to copy
to
the *** where the code is executed) :(
Is there a way to do this? I need to copy the value and the format os the
cells in the range...
Thanks
.
- Prev by Date: Re: Value issue
- Next by Date: RE: Copy and Paste LAST ROW of data non-contiguous
- Previous by thread: Copy and Paste LAST ROW of data non-contiguous
- Next by thread: Auto mail from xl
- Index(es):