Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Calling macro from UserForm


I have a macro defined in a module. How can I call that macro from a
actionButton on a UserForm? Right now it's telling me "Sub or Functio
not defined.

--
AMK
-----------------------------------------------------------------------
AMK4's Profile: http://www.excelforum.com/member.php...fo&userid=1914
View this thread: http://www.excelforum.com/showthread.php?threadid=50754

  #2   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Calling macro from UserForm

Are you using Call?

Call MacroName



"AMK4" wrote:


I have a macro defined in a module. How can I call that macro from an
actionButton on a UserForm? Right now it's telling me "Sub or Function
not defined."


--
AMK4
------------------------------------------------------------------------
AMK4's Profile: http://www.excelforum.com/member.php...o&userid=19143
View this thread: http://www.excelforum.com/showthread...hreadid=507544


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Calling macro from UserForm


JMB Wrote:
Are you using Call?

Call MacroName



Yes I am. Does it make a difference if the macro being called is a
Private one (which it is)?


--
AMK4
------------------------------------------------------------------------
AMK4's Profile: http://www.excelforum.com/member.php...o&userid=19143
View this thread: http://www.excelforum.com/showthread...hreadid=507544

  #4   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Calling macro from UserForm

Private Sub procedures are only available to other macros declared in the
same module.

"AMK4" wrote:


JMB Wrote:
Are you using Call?

Call MacroName



Yes I am. Does it make a difference if the macro being called is a
Private one (which it is)?


--
AMK4
------------------------------------------------------------------------
AMK4's Profile: http://www.excelforum.com/member.php...o&userid=19143
View this thread: http://www.excelforum.com/showthread...hreadid=507544


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
How to get userform Cancel button to invoke Exit Sub in calling macro? Craig Remillard New Users to Excel 1 November 19th 09 03:55 AM
Calling function from a userform Jeff Excel Discussion (Misc queries) 0 September 27th 06 03:27 PM
Button on Userform calling GetOpenFilename Werner Rohrmoser Excel Programming 2 March 22nd 05 07:15 AM
VBA question - Calling txt file from userform ajliaks[_9_] Excel Programming 2 April 17th 04 09:23 AM
VBA question - calling Procedure from userform ajliaks[_3_] Excel Programming 2 April 14th 04 09:11 PM


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