Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default Compiler Error - Not an Appropriate Name

I've got what I believe to be an organization problem in my Excel
macros (using 97-2003 version).

Here's the situation:

In Option Explicit Module1 I have a program which calls a bunch of sub
routines from Module3 which is an Option Private Module.

This works fine.

Now I'm adding into other variations to the macro on Module1, so I've
made Module4 contain a macro which uses one of the sub routines on
Module3 (Option Private Module), only I'm getting the following error:
Compilation Error: Not an appropriate name: TeishutsuItemRow

I have listed TeishutsuItemRow as a public variable on my new macro on
Module4. What code rule am I violating? Is there anyway I can reuse
a sub routine on an Option Private Module sheet in multiple macros
located on multiple modules?

Thanks, NP

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 62
Default Compiler Error - Not an Appropriate Name

To further explain here -

Several of the macros use the same variables. This probably means
that I should combine the modules then, rather than have them
separate. I just wanted to avoid having a HUGE long module, and
thought that breaking it up into different modules would be easier to
understand.

Will be tweaking with it to see what works.

Anybody else who's encountered this problem and could give two cents
would be appreciated.

Thanks, NP

On 7¤ë16¤é, ¤È«e9:23, pallaver wrote:
I've got what I believe to be an organization problem in my Excel
macros (using 97-2003 version).

Here's the situation:

In Option Explicit Module1 I have a program which calls a bunch of sub
routines from Module3 which is an Option Private Module.

This works fine.

Now I'm adding into other variations to the macro on Module1, so I've
made Module4 contain a macro which uses one of the sub routines on
Module3 (Option Private Module), only I'm getting the following error:
Compilation Error: Not an appropriate name: TeishutsuItemRow

I have listed TeishutsuItemRow as a public variable on my new macro on
Module4. What code rule am I violating? Is there anyway I can reuse
a sub routine on an Option Private Module sheet in multiple macros
located on multiple modules?

Thanks, NP


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
Compiler Error Bobzter100 Excel Discussion (Misc queries) 4 November 10th 07 11:02 AM
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
Excel Compiler Steve-in-austin Excel Discussion (Misc queries) 2 June 8th 06 06:44 PM


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