Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 470
Default Macro to create new workbook

I have a scheduling workbook template. In this template workbook I need the
code to accomplish the following:

1) protect the template workbook so that it can never be changed,
2) code to create a new workbook via copying the template workbook.

Thanks,
Les
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 470
Default Macro to create new workbook

Can the steps created by the recorder be assigned to a commandbutton? If
not, then I need to be able to use a commandbutton.

Thanks,
Les


"Don Guillett" wrote:

The macro recorder is your friend

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"WLMPilot" wrote in message
...
I have a scheduling workbook template. In this template workbook I need
the
code to accomplish the following:

1) protect the template workbook so that it can never be changed,
2) code to create a new workbook via copying the template workbook.

Thanks,
Les



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,069
Default Macro to create new workbook

look at SaveCopyAs Method in VBA helpfile.
--
JB


"WLMPilot" wrote:

I have a scheduling workbook template. In this template workbook I need the
code to accomplish the following:

1) protect the template workbook so that it can never be changed,
2) code to create a new workbook via copying the template workbook.

Thanks,
Les

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
create personal macro workbook krispylala Excel Worksheet Functions 3 December 6th 07 04:38 PM
Macro to create new workbook and sheets Richard Excel Discussion (Misc queries) 1 July 31st 07 07:31 PM
how to create a macro that runs other macro in the same workbook VB Script for Excel Excel Programming 4 March 23rd 06 03:53 AM
Create new workbook when macro is run [email protected] Excel Programming 2 November 14th 05 12:17 PM
create new macro in new workbook Randy[_7_] Excel Programming 2 August 7th 03 05:50 PM


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

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"