ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   create a copy of a sheet and insert it into the same workbook. (https://www.excelbanter.com/excel-programming/334629-re-create-copy-sheet-insert-into-same-workbook.html)

Kaak[_19_]

create a copy of a sheet and insert it into the same workbook.
 

I would try two things:

replace your code with:
Sheets("Temp").Copy Befo=Sheets("Temp")

or in stead of a not visible sheet
insert a template sheet:

Sheets.Add Type:= "C:\Template.xlt"

the last way is the better way I thin

--
Kaa
-----------------------------------------------------------------------
Kaak's Profile: http://www.excelforum.com/member.php...nfo&userid=751
View this thread: http://www.excelforum.com/showthread.php?threadid=38748



All times are GMT +1. The time now is 09:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com