ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   create workbook, copy sheets (https://www.excelbanter.com/excel-programming/343755-create-workbook-copy-sheets.html)

Pierre via OfficeKB.com[_2_]

create workbook, copy sheets
 
Hi experts,

I would like to
- create a new workbook called "vpldb" from VBA code (if the workbook does
not already exist)
- if the workbook already exist, i would like to replace sheet1 and sheet2 in
"vpldb" with sheeta and sheetb (including all data, not linked) of my
existing workbook called "vplprog".
- if the workbook does not exist, i would like to create workbook "vpldb" and
copy 2 sheets (sheeta and sheetb, including al data, not linked) from my
current workbook into the new workbook

Can anybody help me please?
thanks,
Pierre


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200510/1


All times are GMT +1. The time now is 02:53 AM.

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