Hello everybody,
Maybe mi question is easier, however I have spendt a week loking for an answer.
I have 2 workbooks and want to copy a sheet from a workbook to the other one.
both workbooks are in the same folder, of course differnt name.
I am using vb6.0 and Excel 2010.
Regards
copy a sheet from workbook to another one
Page 1 of 12 Replies - 576 Views - Last Post: 17 March 2013 - 12:51 PM
Replies To: copy a sheet from workbook to another one
#2
Re: copy a sheet from workbook to another one
Posted 16 March 2013 - 01:20 PM
Really? Spent a week looking for the answer?
Learn to use the macro recorder in Excel; this is the easiest way to get started:
The macro creates some unnecessary code - for example, the first .Select line is unnecessary - but it will always giving you a starting point.
Spent a week..? The very first link on a Google search leads me to this page:
http://www.ozgrid.co...ead.php?t=59938
Learn to use the macro recorder in Excel; this is the easiest way to get started:
Sub Macro1()
Sheets("Sheet1").Select
Sheets("Sheet1").Copy After:=Workbooks("Book1").Sheets(3)
End Sub
The macro creates some unnecessary code - for example, the first .Select line is unnecessary - but it will always giving you a starting point.
Spent a week..? The very first link on a Google search leads me to this page:
http://www.ozgrid.co...ead.php?t=59938
#3
Re: copy a sheet from workbook to another one
Posted 17 March 2013 - 12:51 PM
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|