Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Problems calling macros in addin from within macros

Hi All,

I have an add-in that I have built myself and use on the 3 PC's I have to
use on different sites. I also have a spreadsheet that I use on all 3
sites. The spreadsheet uses macros and UDF's from within the add-in.

All works fine until I move the worksheet from one PC to another, once
loaded on the new PC it requires the "link" to be updated in order to work
(i.e. you have to point it to the location of the add-in on the new pc)

Is there any advice anyone can give in order to make my worksheet more
portable. I do-not want to include the code from the add-in within my
workbook if at all possible.

2 other bits of potentially useful information (1) I have had a go at using
refernces but I presume these are specific to 1 PC?
(2) I don't understand how / when you should use a class module - is this a
potential solution here?

Ta

Andi



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 279
Default Problems calling macros in addin from within macros

Not enough information to be sure ....

If your addin is loaded on each machine and the workbook has no code in it
then the addin should be available to the instance of excel and work on "any"
file.

If you are discussing changing the addin (workbook) and moving it to a new
machine the process is based on how/where it was loaded, XLStart vs library
vs XLAddin
in XLStart you would simply save the new addin into folder overwriting the
old file.

Alternatively, there could be an issue created by the code in you addin...

post back with more info.

"Andibevan" wrote:

Hi All,

I have an add-in that I have built myself and use on the 3 PC's I have to
use on different sites. I also have a spreadsheet that I use on all 3
sites. The spreadsheet uses macros and UDF's from within the add-in.

All works fine until I move the worksheet from one PC to another, once
loaded on the new PC it requires the "link" to be updated in order to work
(i.e. you have to point it to the location of the add-in on the new pc)

Is there any advice anyone can give in order to make my worksheet more
portable. I do-not want to include the code from the add-in within my
workbook if at all possible.

2 other bits of potentially useful information (1) I have had a go at using
refernces but I presume these are specific to 1 PC?
(2) I don't understand how / when you should use a class module - is this a
potential solution here?

Ta

Andi




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 103
Default Problems calling macros in addin from within macros

I think I may need to change where the add-in is loaded as I want the code
in my spreadsheet to be able to call the UDF's in my add-in and it to appear
as though they are just a normal part of excel - i.e. there is no problems
with having to update links.

I will do some reading about the options relating to loading add-ins.

"Vacation's Over" wrote in message
...
Not enough information to be sure ....

If your addin is loaded on each machine and the workbook has no code in it
then the addin should be available to the instance of excel and work on

"any"
file.

If you are discussing changing the addin (workbook) and moving it to a new
machine the process is based on how/where it was loaded, XLStart vs

library
vs XLAddin
in XLStart you would simply save the new addin into folder overwriting the
old file.

Alternatively, there could be an issue created by the code in you addin...

post back with more info.

"Andibevan" wrote:

Hi All,

I have an add-in that I have built myself and use on the 3 PC's I have

to
use on different sites. I also have a spreadsheet that I use on all 3
sites. The spreadsheet uses macros and UDF's from within the add-in.

All works fine until I move the worksheet from one PC to another, once
loaded on the new PC it requires the "link" to be updated in order to

work
(i.e. you have to point it to the location of the add-in on the new pc)

Is there any advice anyone can give in order to make my worksheet more
portable. I do-not want to include the code from the add-in within my
workbook if at all possible.

2 other bits of potentially useful information (1) I have had a go at

using
refernces but I presume these are specific to 1 PC?
(2) I don't understand how / when you should use a class module - is

this a
potential solution here?

Ta

Andi






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
Display macros in addin Claude Excel Programming 1 February 23rd 05 12:27 PM
Problem with calling addin macros in ExcelXP wojtek Excel Programming 2 November 9th 04 11:44 PM
Calling Macros From VB6 Diehard Excel Programming 3 August 2nd 04 04:42 PM
Calling macros from a VB app Minilek Excel Programming 2 July 13th 04 09:43 AM
Calling macros in another spreadsheet skimmer333 Excel Programming 0 September 30th 03 01:43 AM


All times are GMT +1. The time now is 04:45 AM.

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"