PC Review


Reply
Thread Tools Rate Thread

Copy row from one workbook to another

 
 
C Holmes
Guest
Posts: n/a
 
      28th Nov 2008
Hello,

I need to copy rows 1 - 4 from one workbook to another workbook. I wouldn't
think it would be that difficult, but I can't figure it out. Appreciate any
help. I'm using Excel 2003.

Thanks.
 
Reply With Quote
 
 
 
 
Eduardo
Guest
Posts: n/a
 
      28th Nov 2008
Hi,
try
Sub Macro1()
'
' Macro1 Macro
'

'
Sheets("Sheet2").Select
Rows("1:4").Select
Selection.Copy
Sheets("Sheet1").Select
ActiveSheet.Paste
End Sub


"C Holmes" wrote:

> Hello,
>
> I need to copy rows 1 - 4 from one workbook to another workbook. I wouldn't
> think it would be that difficult, but I can't figure it out. Appreciate any
> help. I'm using Excel 2003.
>
> Thanks.

 
Reply With Quote
 
JLGWhiz
Guest
Posts: n/a
 
      28th Nov 2008
You can do that manually by selecting the range to copy, then Edit>Copy
---Activate the other workbook, select the anchor cell, then Edit>Paste.

For VBA:

Sub cpyRw1_4()
Set wb1 = ActiveWorkbook.ActiveSheet
Set wb2 = Workbooks(2).Sheets(1)
wb1.Rows("1:4").Copy wb2.Range("A1")
End Sub




Sub
"C Holmes" wrote:

> Hello,
>
> I need to copy rows 1 - 4 from one workbook to another workbook. I wouldn't
> think it would be that difficult, but I can't figure it out. Appreciate any
> help. I'm using Excel 2003.
>
> Thanks.

 
Reply With Quote
 
C Holmes
Guest
Posts: n/a
 
      28th Nov 2008
Thanks everyone, got it working!

"C Holmes" wrote:

> Hello,
>
> I need to copy rows 1 - 4 from one workbook to another workbook. I wouldn't
> think it would be that difficult, but I can't figure it out. Appreciate any
> help. I'm using Excel 2003.
>
> Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Copy all worksheets to another workbook, excl. duplicate sheets already in other workbook Chip Pearson Microsoft Excel Programming 0 26th May 2009 04:27 PM
Copy Autofilter Source Workbook A result in Destination Workbook BSheet1 u473 Microsoft Excel Programming 1 9th Sep 2008 05:14 PM
Copy data from Workbook Alpha & reorganize it in Workbook Bravo u473 Microsoft Excel Programming 1 31st Oct 2007 02:37 AM
loop through a column on a workbook copying data on each row to another workbook, then copy data back to the original workbook burl_rfc Microsoft Excel Programming 1 1st Apr 2006 08:48 PM
Copy a range of cells in an unopened workbook and paste it to the current workbook topstar Microsoft Excel Programming 3 24th Jun 2004 12:50 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:22 AM.