Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel XP: How to make a reference to a library persistent

Hi,

I need a reference to the library "Microsoft Visual Basic For Applications
Extensibility". For each new document I have to check this option in the VBA
editor again. Is it possible to make this option persistent?

Regards,

Marcel


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 123
Default Excel XP: How to make a reference to a library persistent

Hi Marcel,
It's simple.

Start a new blank workbook.
Go to Viusal Basic Editor and add the reference to the required library
(or libraries).

Save the the workbook as a Template (.xlt) giving a name you will easily
remember :- e.g. 'VB-App-Ext.xlt'.
Save this template in default template path (When you click on save, (or
save as), in the Save window, in 'Save As Type' field (which is bottom
most), click on the Down arrow and select 'Template (*.xlt). This will
save the file in the default template path.

Close the workbook.

Whenever you want a new document with reference to the that library
simply click on File Menu- Select New- Select 'VB-App-Ext.xlt'.

Sharad

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel XP: How to make a reference to a library persistent

Hello Sharad,

Thank you for your solution. I thought there would be some kind of
normal.dot as Word has, but this will do the job also very well. Now I can
start Excel from the Alpha Five database program load a new document based
on that template and create with Xbasic macro code in Excel to execute.
Thanks a lot.

Regards,

Marcel

"Sharad" schreef in bericht
...
Hi Marcel,
It's simple.

Start a new blank workbook.
Go to Viusal Basic Editor and add the reference to the required library
(or libraries).

Save the the workbook as a Template (.xlt) giving a name you will easily
remember :- e.g. 'VB-App-Ext.xlt'.
Save this template in default template path (When you click on save, (or
save as), in the Save window, in 'Save As Type' field (which is bottom
most), click on the Down arrow and select 'Template (*.xlt). This will
save the file in the default template path.

Close the workbook.

Whenever you want a new document with reference to the that library
simply click on File Menu- Select New- Select 'VB-App-Ext.xlt'.

Sharad

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



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
Excel 2007 compatability, VBA Reference, MicrosoftOffice12. Object Library [email protected] Excel Discussion (Misc queries) 3 May 1st 07 06:57 PM
Reference Library - Missing Library in a lower version. luvgreen Excel Programming 1 October 7th 04 02:08 AM
Is it possible to set a reference to a library in another file using VBA in Excel? quartz Excel Programming 6 April 20th 04 01:27 AM
Excel library reference files Cindy Excel Programming 4 April 2nd 04 06:11 PM
Excel Object Library Reference francis cheuk Excel Programming 1 February 11th 04 06:15 PM


All times are GMT +1. The time now is 05:57 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"