Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default VBA to copy a template worksheet to new excel workbook

I have created a template with a Worksheet called "Certificate".

There is a userform that is opened on Auto_Open of this template and
allows a file name and some other parameters to be input.

On pressing the OK button on this form, I want to do the following.

1. Create a new XLS workbook with the file name entered on the form
(this includes the full Windows folder address).

2. Copy the Certificate workbook from the template across to this new
file.

3. Close the original template (maybe closing needs to be done at the
end??) and make the "Certifcate" worksheet in the new workbook the
active worksheet.

4. Using the parameters entered on the userform, change the details in
"Certificate" (this code is already written but not set up for the new
workbook - currently it updates the template "Certificate" worksheet)

5. Save the new excel workbook with the changes.

I know this should be simple but I am really struggling. Please can
anyone help?

Cheers

Mark

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Possible to copy worksheet into template? foxcole Excel Discussion (Misc queries) 3 October 2nd 07 08:47 PM
Copy Filterd Data from worksheet to another workbook template Kenny Excel Discussion (Misc queries) 1 October 2nd 07 01:13 PM
Copy Excel Worksheet to another workbook MJ Excel Programming 1 September 20th 06 02:18 PM
Excel 2007 copy/move worksheet to another workbook Hoekie@work Excel Discussion (Misc queries) 0 June 21st 06 07:27 AM
VBA Code to copy a worksheet to another Excel Workbook Hummel Excel Programming 3 November 9th 04 12:54 AM


All times are GMT +1. The time now is 06:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"