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.

Frist = DateAdd("d", n, dat)<br />

If (Weekday(Frist, vbMonday) = 6) Then _<br />

Frist = DateAdd("d", n + 2, dat)<br />

If (Weekday(Frist, vbMonday) = 7) Then _<br />

Frist = DateAdd("d", n + 1, dat)<br />

End Function<br />

<br />

Public Function Sommerzeit(ByVal JahrA As Long) As Date<br />

Sommerzeit = DateSerial(JahrA, 3, 31 - _<br />

(Weekday(DateSerial(JahrA, 3, 31), vbMonday) Mod 7))<br />

End Function<br />

Public Function Winterzeit(ByVal JahrA As Long) As Date<br />

Winterzeit = DateSerial(JahrA, 10, 31 - _<br />

(Weekday(DateSerial(JahrA, 10, 31), vbMonday) Mod 7))<br />

End Function<br />

Public Function VierterAdvent(ByVal JahrA As Long) As Date<br />

VierterAdvent = DateSerial(JahrA, 12, 25 - _<br />

Weekday(DateSerial(JahrA, 12, 25), vbMonday))<br />

End Function<br />

<br />

<br />

KMult <br />

Invers(z) 1/z <br />

InversSub(z) z 1/z <br />

KomplexToString(z)<br />

Option Explicit<br />

Public Type Komplex<br />

Re As Double<br />

Im As Double<br />

End Type<br />

Function KomplexToString(ByRef z As Komplex) As String<br />

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

KomplexToString = "0"<br />

ElseIf (z.Re = 0) Then<br />

KomplexToString = z.Im & "i"<br />

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

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

Else<br />

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

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

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!