View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.programming
Susan Susan is offline
external usenet poster
 
Posts: 1,117
Default Application.Run error

ok. sorry, i don't know, then. maybe this thread will help

http://groups.google.com/group/micro...43b70e2c6cc712

sorry!
susan


On Oct 23, 3:41*pm, wrote:
On Oct 23, 2:25*pm, Susan wrote:





there are certain words that you shouldn't use as the name of a module
or code or function ........ "code" is one of them.
try renaming your function to something like MyCode and try again.
:)
susan


On Oct 23, 3:17*pm, wrote:


Hi,


I'm using the following code to do a call for a function in a workbook
called "Code"


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
* Application.Run ("Code.xls!ModuleWorksheet_SelectionChange(Target) ")
End Sub


This code is in my primary project. However I receive an error that
say's the Macro cannot be found.
The "Code.xls" *is in a workbook that holds of the codes I wish to use
in my project.(different *workbook)
I've used various formats for the above code found on this forum.
Using Excel 2003 windows XP
Any help would be great.


Thanks


Thanks for the reply.
I renamed the "Code" to "MyCode" and still received the error Macro
cannot be found.
I also re-named the Function ModuleWorksheet_SelectionChange(Target)
to
Worksheet_SelectionChange(Target)
Still received the error.
The project workbook holds the all of the call procedures.
The "MyCode" workbooks holds all of the Functions I wish to use.
All of the "Function" are declared as "Public" in a Module.- Hide quoted text -

- Show quoted text -