hab mal eine bescheidene Frage an die VBA Götter.
Kann man bei "vbTab" die Länge des TAB ändern ? und wenn wie.
Liebe Nordhessische Grüsse
Bernd
While Len(zeilenarr(0))
und vbTab ist leider eine Programmkonstante ..... ;(
txt = "DeinText"
txt = txt & string(20 - Len(txt), " ")
'oder
txt = left(txt & string(20, " "), 20)
wobei die erste Variante nur dann fehlerfrei funktioniert, wenn der Text selbst nicht länger als 20 Zeichen ist.
Dim wieoft
wieoft = 4
MsgBox "Hallo" & Application.WorksheetFunction.Rept(vbTab, wieoft) & "!"
Gruß Matthias
Sub Beispiel()
Dim wieoft&
wieoft = 4
MsgBox "Hallo" & Application.WorksheetFunction.Rept(vbTab, wieoft) & "!"
MsgBox "Hallo" & String(wieoft, vbTab) & "!"
End Sub
Gruß Tino