View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Jake Marx[_3_] Jake Marx[_3_] is offline
external usenet poster
 
Posts: 860
Default Calling a private sub in Outlook via toolbar button

sapphire wrote:
Can you give me an example of a Public wrapper subroutine?

Thanks much.


All I was talking about was creating a Public subroutine that in turn called
the Private one (from the same Module of course).

Public Sub MyWrapper()
DoMyStuff True
End Sub

Private Sub DoMyStuff(dummyVar As Boolean)
'/ your code here
End Sub

But why are is your subroutine Private in the first place if you want it to
be globally callable?

--
Regards,

Jake Marx
www.longhead.com


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