Copy data from one sheet to another

abhiutd

Registered User.
Local time
Today, 08:16
Joined
Jul 28, 2008
Messages
48
Hello!
I have created a worksheet using :
Dim wkSheet As Worksheet
Set newWkSheet = ActiveWorkbook.Sheets.Add

Now i want to copy data from another exiting sheet to this new blank sheet. How can i do that?
Any help would be greatly appreciated.

Thank You.
 
Hello!
I have created a worksheet using :
Dim wkSheet As Worksheet
Set newWkSheet = ActiveWorkbook.Sheets.Add

Now i want to copy data from another exiting sheet to this new blank sheet. How can i do that?
Any help would be greatly appreciated.

Thank You.

Code:
Windows("Name of your source workbook here.xls").Activate

Cells.Select ' This selects all cells in the active worksheet
Selection.Copy ' Copies all the cells to the clipboard
Windows("Name of your destination workbook here.xls").Activate ' Makes your destination book the active book
Cells.Select
Activecell.Paste
 
Hi Scott,
Thank you. I took your approach and i was able to do it by using only two statements sheet1.Copy and sheet2.PasteSpecial

Thanks again.
 

Users who are viewing this thread

Back
Top Bottom