Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Calling a private sub

Make it public, but give it a do-nothing argument, it can't get c alled
from Excel then.

--
HTH

-------

Bob Phillips
"Al" wrote in message
...
Hi All.
Im not sure that this is possible.
I have some code in the ThisWorkbook module. I want this code to call a

procedure in a standard module, however the procedure is private ( i.e
private sub blah() )
I'm currently trying to do one, but i get a "Member or data method not

found" error.

I would like to keep the private sub private, as it will mess-up the

workbook beyond repair if called seperately.

Does anyone know how to get this to work?

Cheers.
Al



  #2   Report Post  
Posted to microsoft.public.excel.programming
al al is offline
external usenet poster
 
Posts: 363
Default Calling a private sub

Hi Bob,
Thanks for below. However i'm unsure on how to do that.
I've tried sub Blah(Do-Nothing) and sub Blah(DoNothing) but they don't work.
Searching, i can't find anything. Can you give anymore info.

Cheers.


"Bob Phillips" wrote:

Make it public, but give it a do-nothing argument, it can't get c alled
from Excel then.

--
HTH

-------

Bob Phillips
"Al" wrote in message
...
Hi All.
Im not sure that this is possible.
I have some code in the ThisWorkbook module. I want this code to call a

procedure in a standard module, however the procedure is private ( i.e
private sub blah() )
I'm currently trying to do one, but i get a "Member or data method not

found" error.

I would like to keep the private sub private, as it will mess-up the

workbook beyond repair if called seperately.

Does anyone know how to get this to work?

Cheers.
Al




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Calling a private sub

Al,

You Need to add the argument to the macro

Public Sub Blah(dummy)

....

End Sub

and just ignore the dummy argument.

--
HTH

-------

Bob Phillips
"Al" wrote in message
...
Hi Bob,
Thanks for below. However i'm unsure on how to do that.
I've tried sub Blah(Do-Nothing) and sub Blah(DoNothing) but they don't

work.
Searching, i can't find anything. Can you give anymore info.

Cheers.


"Bob Phillips" wrote:

Make it public, but give it a do-nothing argument, it can't get c alled
from Excel then.

--
HTH

-------

Bob Phillips
"Al" wrote in message
...
Hi All.
Im not sure that this is possible.
I have some code in the ThisWorkbook module. I want this code to call

a
procedure in a standard module, however the procedure is private ( i.e
private sub blah() )
I'm currently trying to do one, but i get a "Member or data method not

found" error.

I would like to keep the private sub private, as it will mess-up the

workbook beyond repair if called seperately.

Does anyone know how to get this to work?

Cheers.
Al






  #4   Report Post  
Posted to microsoft.public.excel.programming
al al is offline
external usenet poster
 
Posts: 363
Default Calling a private sub

Thanks Bob,
I understand now. Thanks again for your help.
Cheers.
Al

"Bob Phillips" wrote:

Al,

You Need to add the argument to the macro

Public Sub Blah(dummy)

....

End Sub

and just ignore the dummy argument.

--
HTH

-------

Bob Phillips
"Al" wrote in message
...
Hi Bob,
Thanks for below. However i'm unsure on how to do that.
I've tried sub Blah(Do-Nothing) and sub Blah(DoNothing) but they don't

work.
Searching, i can't find anything. Can you give anymore info.

Cheers.


"Bob Phillips" wrote:

Make it public, but give it a do-nothing argument, it can't get c alled
from Excel then.

--
HTH

-------

Bob Phillips
"Al" wrote in message
...
Hi All.
Im not sure that this is possible.
I have some code in the ThisWorkbook module. I want this code to call

a
procedure in a standard module, however the procedure is private ( i.e
private sub blah() )
I'm currently trying to do one, but i get a "Member or data method not
found" error.

I would like to keep the private sub private, as it will mess-up the
workbook beyond repair if called seperately.

Does anyone know how to get this to work?

Cheers.
Al






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() - Sub() CousinExcel Excel Discussion (Misc queries) 2 January 18th 10 01:39 PM
Private sub problem sby Excel Worksheet Functions 1 November 28th 07 04:50 PM
Private sub Mark New Users to Excel 3 April 6th 05 03:36 PM
Keeping add-in private R Avery Excel Programming 1 July 8th 04 03:51 PM
calling private subs dunlklee Excel Programming 1 December 16th 03 08:40 AM


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