11.10.2013 Aufrufe

Excel aufmöbeln mit VBA

Excel aufmöbeln mit VBA

Excel aufmöbeln mit VBA

MEHR ANZEIGEN
WENIGER ANZEIGEN

Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.

YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.

z.Re & " + " & z.Im & "i"<br />

If (z.Im < 0) Then KomplexToString = _<br />

z.Re & " - " & (-z.Im) & "i"<br />

If (z.Im = 1) Then KomplexToString = z.Re & " + i"<br />

If (z.Im = -1) Then KomplexToString = z.Re & " - i"<br />

If (z.Im = 0) Then KomplexToString = z.Re<br />

End If<br />

End Function<br />

Function KMult(ByRef w As Komplex, ByRef z As Komplex) _<br />

As Komplex<br />

KMult.Re = w.Re * z.Re - w.Im * z.Im<br />

KMult.Im = w.Re * z.Im + w.Im * z.Re<br />

End Function<br />

Function Invers(ByRef z As Komplex) As Komplex<br />

If (z.Re = 0 And z.Im = 0) Then Exit Function<br />

Dim betraghoch2 As Double<br />

betraghoch2 = z.Re ^ 2 + z.Im ^ 2<br />

Invers.Re = z.Re / betraghoch2<br />

Invers.Im = -z.Im / betraghoch2<br />

End Function<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

Function Netto1(ByVal Brutto As Long, _<br />

ByVal k As Long, ByVal verh As Boolean) As Double<br />

If (Brutto < 0) Then<br />

Netto1 = 0<br />

Else<br />

Dim anz As Long<br />

anz = k<br />

If (verh = True) Then anz = anz + 1<br />

<br />

If (anz = 0) Then

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!