Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default copy cell range in other sheet

Hello,

i need to sovle my problem please

I use only A1: C4 cell to enter data ,
now my problem when i click command button how to copy cell range A2 : C4 when

every time i enter data in above cell range look exmple like below

sheet 1


A1 B2 C3
Roll No Name Grade
51 vipul c
52 Jigar a
53 viral b

sheet 2 contain follwing heading


A1 B1 C1
Roll No Name Grade


now, sheet 1 range A2:C4 will copy & paste in sheet 2 below given heading
like A2:C4 when i click command button on sheet 1 &

agin i enter new data in sheet 1 cell range A2 :C4 it wil be copy & paste in
sheet 2 in exact below in earlier paste cell (sheet 2) A5: C7


please give vba code or macro
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 621
Default copy cell range in other sheet

Sub copy_three()
Dim rng1 As Range
Dim rng2 As Range
Set rng1 = Worksheets("Sheet1").Range("A2:C4")
Set rng2 = Worksheets("Sheet2").Cells(Rows.Count, 1).End(xlUp) _
.Offset(1, 0)
rng1.Copy Destination:=rng2
End Sub


Gord


On Fri, 30 Dec 2011 11:39:58 -0600, kalpesh
wrote:

Hello,

i need to sovle my problem please

I use only A1: C4 cell to enter data ,
now my problem when i click command button how to copy cell range A2 : C4 when

every time i enter data in above cell range look exmple like below

sheet 1


A1 B2 C3
Roll No Name Grade
51 vipul c
52 Jigar a
53 viral b

sheet 2 contain follwing heading


A1 B1 C1
Roll No Name Grade


now, sheet 1 range A2:C4 will copy & paste in sheet 2 below given heading
like A2:C4 when i click command button on sheet 1 &

agin i enter new data in sheet 1 cell range A2 :C4 it wil be copy & paste in
sheet 2 in exact below in earlier paste cell (sheet 2) A5: C7


please give vba code or macro

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
How do I copy a range of data to another sheet? MrNobody Excel Worksheet Functions 2 February 19th 09 03:38 AM
How to Copy range of Row heights from one sheet to another in XL? Suby Mathews Excel Worksheet Functions 1 January 8th 09 08:20 AM
RANGE EXCEL copy cell that meets criteria in a range confused Excel Worksheet Functions 3 March 27th 08 01:41 PM
Copy range and past on another sheet gumby Excel Worksheet Functions 3 July 17th 07 11:54 PM
select a range, copy it to a new sheet Dave F Excel Discussion (Misc queries) 1 September 22nd 06 08:06 PM


All times are GMT +1. The time now is 07:48 PM.

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"