Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default using macro to copy paste

hi....

I would like to copy my data at location A1:A4 sheet 1 and past at A1:A4
at sheet 2 without open sheet 2.
Can anyone help me on this..

rgds
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default using macro to copy paste

Range("A1:A4").Copy Destination:=Sheets("Sheet2").Range("A1")

Regards,
Stefi

€˛ramzi€¯ ezt Ć*rta:

hi....

I would like to copy my data at location A1:A4 sheet 1 and past at A1:A4
at sheet 2 without open sheet 2.
Can anyone help me on this..

rgds

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 47
Default using macro to copy paste

Please follow following steps
1. add control toolbox to the toolbar (toolbarrightclickcontrol toolbox)
2.add a command button on worksheet 1
3.Right click command buttonview code
4.then add following code in the code window:-

Private Sub CommandButton1_Click()
dim i as integer
For i=1 To 4
Application.Worksheets("sheet2").Cells(i, 1).Value= Application.
Worksheets("sheet1").Cells(i, 1).Value
next
End Sub

Now You got it!

Have a happy time.....




Chris
------
Convert your Excel spreadsheet into online calculator.
http://www.spreadsheetconverter.com

--
Chris
------
Convert your Excel spreadsheet into online calculator.
http://www.spreadsheetconverter.com

Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200901/1

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default using macro to copy paste

Thank you Stefi...

"Stefi" wrote:

Range("A1:A4").Copy Destination:=Sheets("Sheet2").Range("A1")

Regards,
Stefi

€˛ramzi€¯ ezt Ć*rta:

hi....

I would like to copy my data at location A1:A4 sheet 1 and past at A1:A4
at sheet 2 without open sheet 2.
Can anyone help me on this..

rgds

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,646
Default using macro to copy paste

You are welcome! Thanks for the feedback!
Stefi

€˛ramzi€¯ ezt Ć*rta:

Thank you Stefi...

"Stefi" wrote:

Range("A1:A4").Copy Destination:=Sheets("Sheet2").Range("A1")

Regards,
Stefi

€˛ramzi€¯ ezt Ć*rta:

hi....

I would like to copy my data at location A1:A4 sheet 1 and past at A1:A4
at sheet 2 without open sheet 2.
Can anyone help me on this..

rgds

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
macro to copy and paste (to much for me) CC Excel Discussion (Misc queries) 3 October 8th 08 11:51 AM
copy and paste using macro kate Excel Discussion (Misc queries) 3 May 22nd 07 07:41 PM
Copy/Paste Macro Diana Excel Discussion (Misc queries) 1 July 7th 06 08:14 PM
Should I use a macro to copy and paste value? Rebecca Excel Worksheet Functions 0 April 6th 06 10:03 PM
Copy Paste macro GWB Direct Excel Discussion (Misc queries) 2 May 9th 05 03:31 PM


All times are GMT +1. The time now is 06:29 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"