Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Changing the workbook reference

Hi
I have a number of workbooks on a network that refer to a common
workbook (add-in) ABModule05.xla.
If a workbook was used on a laptop and then copied back onto a network
computer then the workbook doesn't know where to look for the reference
workbook ABModule.xla. The message "Can't find project or library" appears.
Is it possible to set the reference in VBA coding? Can each workbook
check to see what system it is on then refer to the appropriate
reference add-in ?

Thanks in anticipation

Andrew B
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Changing the workbook reference

Andrew,

If you load add-in on each machine, you can refer directly to the add-in
procedures

application.run ("myAddin.cla!myProc","val1",a_number )


--
HTH

Bob Phillips

"Andrew B" wrote in message
...
Hi
I have a number of workbooks on a network that refer to a common
workbook (add-in) ABModule05.xla.
If a workbook was used on a laptop and then copied back onto a network
computer then the workbook doesn't know where to look for the reference
workbook ABModule.xla. The message "Can't find project or library"

appears.
Is it possible to set the reference in VBA coding? Can each workbook
check to see what system it is on then refer to the appropriate
reference add-in ?

Thanks in anticipation

Andrew B



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Changing the workbook reference

Hi Bob
Thank you for your reply.
It is better for me to have only one central copy of the add-in as I
often have to 'tweak' the code. Having multiple copies would make
'tweaking' very difficult. Any other possibilities ?

Thank you for your reply

Andrew Bourke

Bob Phillips wrote:
Andrew,

If you load add-in on each machine, you can refer directly to the add-in
procedures

application.run ("myAddin.cla!myProc","val1",a_number )


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Changing the workbook reference

HI Andrew,

If you store the add-in on a server, it would get picked up by everyone when
Excel starts. This way you can keep updating it.

--
HTH

Bob Phillips

"Andrew B" wrote in message
...
Hi Bob
Thank you for your reply.
It is better for me to have only one central copy of the add-in as I
often have to 'tweak' the code. Having multiple copies would make
'tweaking' very difficult. Any other possibilities ?

Thank you for your reply

Andrew Bourke

Bob Phillips wrote:
Andrew,

If you load add-in on each machine, you can refer directly to the add-in
procedures

application.run ("myAddin.cla!myProc","val1",a_number )




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
Using a changing cell reference as part of a workbook name 2 link Jason Excel Discussion (Misc queries) 2 June 12th 09 04:24 PM
Refresh pivot table in workbook A when changing a cell in workbook gildengorin Excel Worksheet Functions 2 March 17th 09 04:59 PM
Prevent List Box Reference from Changing when workbook closes? dim Excel Discussion (Misc queries) 3 April 28th 08 01:29 AM
Changing sheet reference to cell reference TeeJay Excel Worksheet Functions 3 October 19th 07 11:50 AM
Changing Reference Dynamically Shashi Bhosale Excel Programming 1 September 9th 03 03:36 PM


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