ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   help with copying of excel spread sheet from template trought VB (https://www.excelbanter.com/excel-programming/431562-help-copying-excel-spread-sheet-template-trought-vbulletin.html)

Mike[_129_]

help with copying of excel spread sheet from template trought VB
 
Guys/Ladies,

I need to copy template sheet in the work book with VB.
Anubody help??

Mike



Patrick Molloy

help with copying of excel spread sheet from template trought VB
 
dim ws as worksheet
set ws = thisworkbooks.worksheets("???")
ws.copy

change ??? to the sheet name

"Mike" wrote in message
...
Guys/Ladies,

I need to copy template sheet in the work book with VB.
Anubody help??

Mike


JLGWhiz[_2_]

help with copying of excel spread sheet from template trought VB
 
Just a note to Patricks code. If Befo= or After:= is not specified, it
will create a new workbook.



"Patrick Molloy" wrote in message
...
dim ws as worksheet
set ws = thisworkbooks.worksheets("???")
ws.copy

change ??? to the sheet name

"Mike" wrote in message
...
Guys/Ladies,

I need to copy template sheet in the work book with VB.
Anubody help??

Mike





All times are GMT +1. The time now is 11:04 AM.

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