Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 169
Default Sub that cannot be executed from Excel

Hi,
I would like to have a Sub that cannot be executed from Excel. The sub
doesn't have a parameters inside. Does the solution is to put a non used
parameters inside?
Thanks!
Alex
--
Alex St-Pierre
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default Sub that cannot be executed from Excel

Take any sub and export to a .bas file
Then delete the sub and the module that held it.
--
Gary's Student


"Alex St-Pierre" wrote:

Hi,
I would like to have a Sub that cannot be executed from Excel. The sub
doesn't have a parameters inside. Does the solution is to put a non used
parameters inside?
Thanks!
Alex
--
Alex St-Pierre

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default Sub that cannot be executed from Excel

Alex

You're correct....if the sub has an argument, even an optional one, it won't
be available via: [alt]+[F8]

Example...This sub will be available:
Sub AllCanSeeMe()
'MsgBox "Rats! you see me."
End Sub

But, this one will NOT be

Sub NoneCanSeeMe(Optional DummyArg As Integer)
'MsgBox "Rats! you see me."
End Sub

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Alex St-Pierre" wrote:

Hi,
I would like to have a Sub that cannot be executed from Excel. The sub
doesn't have a parameters inside. Does the solution is to put a non used
parameters inside?
Thanks!
Alex
--
Alex St-Pierre

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Sub that cannot be executed from Excel

Just to add:
I could type in the name in the dialog (Alt+F8) and run it with no problem.
True, it doesn't show as one of the choices.

--
Regards,
Tom Ogilvy


"Ron Coderre" wrote in message
...
Alex

You're correct....if the sub has an argument, even an optional one, it
won't
be available via: [alt]+[F8]

Example...This sub will be available:
Sub AllCanSeeMe()
'MsgBox "Rats! you see me."
End Sub

But, this one will NOT be

Sub NoneCanSeeMe(Optional DummyArg As Integer)
'MsgBox "Rats! you see me."
End Sub

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Alex St-Pierre" wrote:

Hi,
I would like to have a Sub that cannot be executed from Excel. The sub
doesn't have a parameters inside. Does the solution is to put a non used
parameters inside?
Thanks!
Alex
--
Alex St-Pierre



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default Sub that cannot be executed from Excel

Very true, of course.

Regarding:
if the sub has an argument, even an optional one, it
won't be available via: [alt]+[F8]


"listed" would have been a better word than "available".

***********
Regards,
Ron

XL2002, WinXP


"Tom Ogilvy" wrote:

Just to add:
I could type in the name in the dialog (Alt+F8) and run it with no problem.
True, it doesn't show as one of the choices.

--
Regards,
Tom Ogilvy


"Ron Coderre" wrote in message
...
Alex

You're correct....if the sub has an argument, even an optional one, it
won't
be available via: [alt]+[F8]

Example...This sub will be available:
Sub AllCanSeeMe()
'MsgBox "Rats! you see me."
End Sub

But, this one will NOT be

Sub NoneCanSeeMe(Optional DummyArg As Integer)
'MsgBox "Rats! you see me."
End Sub

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Alex St-Pierre" wrote:

Hi,
I would like to have a Sub that cannot be executed from Excel. The sub
doesn't have a parameters inside. Does the solution is to put a non used
parameters inside?
Thanks!
Alex
--
Alex St-Pierre




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
Prevent Cell modification when Excel is executed Paul Worsnop Excel Discussion (Misc queries) 2 November 11th 08 04:19 PM
Excel Checkbox can be regconized in a formula and be executed Tr Huynh Excel Worksheet Functions 1 February 24th 06 09:28 PM
Can Access stored procedures be executed from within Excel rmcompute Excel Programming 0 November 19th 05 10:14 PM
Macro not executed Excel -- PowerPoint rick_deacha Excel Programming 0 February 24th 04 04:55 PM


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