Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Problem with calling addin macros in ExcelXP

Hi,
Has anyone experienced the following problem?:

My workbook "mywkb.xls" has a reference to an addin "myaddin.xla".
The VBA code in Auto_Open event contains the following call:

Call myaddin.macro1(arg1, arg2)

This runs perfectly on Win2000/Excel2000.
On WinXP/ExcelXP VBA editor shows up and I'm getting the following error:

"Variable not defined" and myaddin keyword is selected.

It looks like the "dot" operator doesn't work on XP (on 2000 I'd get full
list of macros when typing "myaddin.")
I have to figure out how to make the "myaddin." working due to the backward
compatibility requests.

Please advise.

Thanks,
Wojtek
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Problem with calling addin macros in ExcelXP

You could try saving the addin as a .xls file and change the properties in
VBA of the workbook to Add-In=True, dump the .xls file in the XLSTART
directory and call the macro as a normal macro.

"wojtek" wrote:

Hi,
Has anyone experienced the following problem?:

My workbook "mywkb.xls" has a reference to an addin "myaddin.xla".
The VBA code in Auto_Open event contains the following call:

Call myaddin.macro1(arg1, arg2)

This runs perfectly on Win2000/Excel2000.
On WinXP/ExcelXP VBA editor shows up and I'm getting the following error:

"Variable not defined" and myaddin keyword is selected.

It looks like the "dot" operator doesn't work on XP (on 2000 I'd get full
list of macros when typing "myaddin.")
I have to figure out how to make the "myaddin." working due to the backward
compatibility requests.

Please advise.

Thanks,
Wojtek

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Problem with calling addin macros in ExcelXP

The problem is that the users already have previously created workbooks with
myaddin.macro() code in the ThisWorkbook object.
So, I have to find a way to make this working.
Could it be some security settings (not general ones but new keys in
registry)?

"Damo" wrote:

You could try saving the addin as a .xls file and change the properties in
VBA of the workbook to Add-In=True, dump the .xls file in the XLSTART
directory and call the macro as a normal macro.

"wojtek" wrote:

Hi,
Has anyone experienced the following problem?:

My workbook "mywkb.xls" has a reference to an addin "myaddin.xla".
The VBA code in Auto_Open event contains the following call:

Call myaddin.macro1(arg1, arg2)

This runs perfectly on Win2000/Excel2000.
On WinXP/ExcelXP VBA editor shows up and I'm getting the following error:

"Variable not defined" and myaddin keyword is selected.

It looks like the "dot" operator doesn't work on XP (on 2000 I'd get full
list of macros when typing "myaddin.")
I have to figure out how to make the "myaddin." working due to the backward
compatibility requests.

Please advise.

Thanks,
Wojtek

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
Problem with calling Excel2000 addin in ExcelXP wojtek Excel Programming 0 November 8th 04 11:39 PM
Calling a procedure in a protected VBA Addin Project Chip Pearson Excel Programming 1 September 25th 04 03:47 PM
Calling a sub from a addin in vba Roger[_9_] Excel Programming 4 November 3rd 03 10:39 AM
Calling an Excel Addin from VBA ABN Excel Programming 2 July 31st 03 02:33 PM
Calling an Excel Addin from VBA ABN Excel Programming 0 July 31st 03 02:02 PM


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