B
Benjamin
Hi,
I have a Sub with the following signature:
Sub SendSheet( _
ByRef awksSheets() As Worksheet, _
ByVal strReceiver As String, _
ByVal strSubject As String, _
ByVal strBody As String)
When I call it as follows
SendSheet Array(Workheets(1),Worksheets(2)), _
"(e-mail address removed)", "Subject", "Text body"
I get the error "Compile error: Type mismatch: array or user-defined
type expected". Why is that? How do I have to call this Sub?
Any pointers are greatly appreciated.
Cheers, Benjamin
I have a Sub with the following signature:
Sub SendSheet( _
ByRef awksSheets() As Worksheet, _
ByVal strReceiver As String, _
ByVal strSubject As String, _
ByVal strBody As String)
When I call it as follows
SendSheet Array(Workheets(1),Worksheets(2)), _
"(e-mail address removed)", "Subject", "Text body"
I get the error "Compile error: Type mismatch: array or user-defined
type expected". Why is that? How do I have to call this Sub?
Any pointers are greatly appreciated.
Cheers, Benjamin