Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WorksheetFunction.Complex Method

Office 2007
Converts real and imaginary coefficients into a complex number of the form x + yi or x + yj.

Syntax

expression.Complex(Arg1, Arg2, Arg3)

expression   A variable that represents a WorksheetFunction object.

Parameters

NameRequired/OptionalData TypeDescription
Arg1RequiredVariantThe real coefficient of the complex number.
Arg2RequiredVariantThe imaginary coefficient of the complex number.
Arg3OptionalVariantThe suffix for the imaginary component of the complex number. If omitted, suffix is assumed to be "i".

Return Value
String

Remarks

Bb239233.vs_note(en-us,office.12).gif  Note
All complex number functions accept "i" and "j" for suffix, but neither "I" nor "J". Using uppercase generates an error. All functions that accept two or more complex numbers require that all suffixes match.
  • If Arg1 is nonnumeric, Complex generates an error.
  • If Arg2 is nonnumeric, Complex generates an error.
  • If Arg3 is neither "i" nor "j", Complex generates an error.



Community Additions

Show:
© 2014 Microsoft