Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to dynamically add a reference to personal.xls ?

I use personal.xls to perform customisation whenever I open a new
workbook. For example, I add menu items to the toolbar, which is very
useful. However, if I want personal.xls subs and functions to be
callable by VB code in the new workbook I first have to use the VBE
Tools menu to manually add a reference to personal.xls. Is it possible
to add an external reference to personal.xls programatically? I'm sure
there must be a way of doing this. Guidance appreciated...

Regards, John M
  #2   Report Post  
Posted to microsoft.public.excel.programming
ste ste is offline
external usenet poster
 
Posts: 18
Default How to dynamically add a reference to personal.xls ?

Hi,
on open:
ThisWorkbook.VBProject.References.AddFromFile..... .

regards,
ste

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default How to dynamically add a reference to personal.xls ?

Thanks. Just what I was looking for. Much obliged.

Cheers, John M

ste wrote:
Hi,
on open:
ThisWorkbook.VBProject.References.AddFromFile..... .

regards,
ste

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
Dynamically Reference Offline Workbook/worksheet PatK Excel Discussion (Misc queries) 0 September 7th 07 10:20 PM
How to reference cells dynamically ArthurN Excel Discussion (Misc queries) 2 February 23rd 06 10:08 AM
Dynamically-linked formula, cell reference in the string 0-0 Wai Wai ^-^ Excel Worksheet Functions 4 December 12th 05 01:36 AM
How to dynamically reference a dynamic named range paris3 Excel Worksheet Functions 4 June 24th 05 01:22 AM
Changing Reference Dynamically Shashi Bhosale Excel Programming 1 September 9th 03 03:36 PM


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