Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Public subroutine called from a private sub

Am I allowed to send values by ref from a private sub to a
public sub? Here is the sample code:

Prive Sub Blah()
Dim Entire as Boolean, Pages as Long
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 860
Default Public subroutine called from a private sub

Hi Neil,

With just the framework of your routines, I see nothing wrong (other than
the typo on "Private"). I assume something in your omitted code is causing
a problem. Please show us both subroutines and we can help you diagnose the
problem.

--
Regards,

Jake Marx
MS MVP - Excel
www.longhead.com

[please keep replies in the newsgroup - email address unmonitored]


Neil Bhandar wrote:
Am I allowed to send values by ref from a private sub to a
public sub? Here is the sample code:

Prive Sub Blah()
Dim Entire as Boolean, Pages as Long
.
.
call genreport(Entire,Pages)
end sub

Sub genreport(Entire as Boolean, Pages as Long)
blah...
blah...
blah...
end sub

I get a type mismatch?? checked every nook and cranny. Any
help appreciated!

Thanks,
-Neil


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
Call a subroutine using variable subroutine name dhstein Excel Discussion (Misc queries) 3 July 26th 09 08:28 PM
Private Sub - Called from Userform pallaver Excel Discussion (Misc queries) 3 July 15th 08 08:41 AM
SUBROUTINE HELP biker man Excel Discussion (Misc queries) 1 July 28th 07 04:06 PM
difference between a private sub and a public function? Dave F Excel Discussion (Misc queries) 4 March 16th 07 07:38 PM
Every second subroutine dolegow Excel Programming 1 October 12th 03 02:11 AM


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