Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default scope of private function called from UserForm fails

I get a "function does not exist" or similar when function defined in Module1
is called from UserForm.

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default scope of private function called from UserForm fails

Private functions can only be called from code located in the same module.
Remove the private keyword.


"oscar.c.marin" wrote:

I get a "function does not exist" or similar when function defined in Module1
is called from UserForm.

Thanks in advance.

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
Private Sub - Called from Userform pallaver Excel Discussion (Misc queries) 3 July 15th 08 08:41 AM
Improve method of calling a private function in a private module XP Excel Programming 1 April 30th 08 06:41 PM
Passing a value from 1 userform to another when you dont know who called it. [email protected] Excel Programming 2 August 25th 06 04:11 PM
private sub- which procedure called it Sunil Excel Programming 2 September 27th 05 12:52 PM
Public subroutine called from a private sub Neil Bhandar[_2_] Excel Programming 1 January 15th 04 10:23 PM


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