Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Type mismatch when calling sub with array of worksheets argument
Hi,
I have a Sub with the following signatu 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)), _ ", "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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Type Mismatch: array or user defined type expected | Excel Programming | |||
Array problem: Key words-Variant Array, single-element, type mismatch error | Excel Programming | |||
Array problem: Key words-Variant Array, single-element, type mismatch error | Excel Programming | |||
Help: Compile error: type mismatch: array or user defined type expected | Excel Programming | |||
ByRef argument type mismatch error? | Excel Programming |