Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default How to copy a range

Anyone out there can teach me how to copy a range(say row A1 - E1) to
row A2-E2 using the range command.
thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default How to copy a range

Range("A1:E1").Copy Range("A2")

HTH

Die_Another_Day
Jentan wrote:
Anyone out there can teach me how to copy a range(say row A1 - E1) to
row A2-E2 using the range command.
thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default How to copy a range

One way:
With Range("A1:E1")
.Copy destination:=.Offset(1,0)
End With

HTH
--
AP

"Jentan" a écrit dans le message de news:
...
Anyone out there can teach me how to copy a range(say row A1 - E1) to
row A2-E2 using the range command.
thanks



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default How to copy a range

Hi Jentan,

Try:
'=============
Public Sub Tester()
Dim srcRng As Range
Dim destRng As Range

Set srcRng = Range("A1:E1")
Set destRng = Range("A2")

srcRng.Copy Destination:=destRng
End Sub
'<<=============

To find appropriate syntax, try turning on the macto recorder while you
perform the operation.manually. Whilst recorder code is rarely optimised
code, it will provide you with a syntactical solution,


---
Regards,
Norman



"Jentan" wrote in message
oups.com...
Anyone out there can teach me how to copy a range(say row A1 - E1) to
row A2-E2 using the range command.
thanks



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
RANGE EXCEL copy cell that meets criteria in a range confused Excel Worksheet Functions 3 March 27th 08 01:41 PM
copy formulas from a contiguous range to a safe place and copy them back later Lucas Budlong Excel Programming 2 February 22nd 06 08:26 PM
Create/copy combo boxes in one range if condition is met in a different range LB[_4_] Excel Programming 4 September 30th 05 12:21 AM
Code to copy range vs Copy Entire Worksheet - can't figure it out Mike Taylor Excel Programming 1 April 15th 04 08:34 PM
Range COPY function - how to copy VALUES and not formulas James Cooke Excel Programming 1 August 21st 03 07:04 PM


All times are GMT +1. The time now is 03:20 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"