Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default template code in one place

All,

Is there any way to keep Excel template VBA code (workbook, forms,
modules and classes) in just one location? Like a MS Word .dot
template? So that when the user creates a .xls from the .xlt the
functionality is available, but the code is not actually located in the
newly created .xls.

TIA,

Bill

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default template code in one place

Yes, set it all up in a new file, and save that file as a template named
Book.xlt in the XLStart directory.

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"bill" wrote in message
oups.com...
All,

Is there any way to keep Excel template VBA code (workbook, forms,
modules and classes) in just one location? Like a MS Word .dot
template? So that when the user creates a .xls from the .xlt the
functionality is available, but the code is not actually located in the
newly created .xls.

TIA,

Bill



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default template code in one place

Yea, but when I create the new .xls from the .xlt all of the VBA code
is included in the new .xls file.

Bill

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default template code in one place

So, just don't put any VBA in the template!

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"bill" wrote in message
oups.com...
Yea, but when I create the new .xls from the .xlt all of the VBA code
is included in the new .xls file.

Bill



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
Best way to place text data into a formated Template? Lon Excel Discussion (Misc queries) 1 February 7th 09 09:23 AM
I want to place a calendar template on my desktop. AngieD Excel Worksheet Functions 1 December 17th 08 07:27 PM
Where to place code that changes a cell value? George Furnell[_2_] Excel Programming 4 February 19th 06 06:50 PM
where do i place the code ? Asha Excel Programming 2 October 18th 05 04:13 PM
Wherre best to place code luke New Users to Excel 2 August 22nd 05 08:25 PM


All times are GMT +1. The time now is 03:33 PM.

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

About Us

"It's about Microsoft Excel"