Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Add-In Error

I have an add-in that calls a public sub in a module to open a form as follows

1. The .OnAction event for the menu item is set to MyModule.ShowTheForm within the 'ThisWorkbook' object of My.xl
2. ShowTheForm is a public sub within MyModule and opens a UserForm with UserForm.Sho

The add-in works perfectly on my machine but as soon as I send the .xla file to the AddIns directory of another machine I get the following message

"The macro "My.xla!MyModule.ShowTheForm" cannot be found

Has anyone else experienced this or know what is causing the problem


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Add-In Error

Is the module in the add-in? If not, it is presumably not present.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"DavidW" wrote in message
...
I have an add-in that calls a public sub in a module to open a form as

follows:

1. The .OnAction event for the menu item is set to MyModule.ShowTheForm

within the 'ThisWorkbook' object of My.xla
2. ShowTheForm is a public sub within MyModule and opens a UserForm with

UserForm.Show

The add-in works perfectly on my machine but as soon as I send the .xla

file to the AddIns directory of another machine I get the following message:

"The macro "My.xla!MyModule.ShowTheForm" cannot be found"

Has anyone else experienced this or know what is causing the problem?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Add-In Error

Hi Bob

When I open the VBA IDE from the .xla file the following objects are listed

Microsoft Excel Objects: Sheet1, ThisWorkboo
Forms: UserForm
Modules: ProgrammePlanModule (MyModule)
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 - error saving file & error loading dll TinaF Excel Discussion (Misc queries) 0 July 1st 09 01:49 PM
Error: "Excel encountered an error and had to remove some formatti Carl Excel Discussion (Misc queries) 0 September 18th 06 06:39 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
I have Error 1919 Error Configuring ODBC dataSource Database Texanna1 Excel Discussion (Misc queries) 1 September 12th 06 06:35 AM


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