Excel - VBA will nicht :(
10.06.2004 14:50:22
Mario
Private Sub cmd_Start3_Click()
Dim I As Integer
Dim Datum As String
Dim A As String
Dim Pfadname
Dim DP
Datum = txt_Eingabe.Text & "_" & txt_Eingabe2.Text
Pfadname = Sheets("STRG").Range("A27")
DP = Pfadname & "\" & Datum & "\"
A = Sheets("STRG").Range("A28")
Application.DisplayAlerts = False
For I = 0 To List1.ListCount - 1
If List1.Selected(I) = True Then
Workbooks.Open (DP & List1.List(I))
Call Hochkomma_TLR
Windows("" & A).Activate
Call Hochkomma_TLR2
Windows("" & List1.List(I)).Close
Application.DisplayAlerts = True
Sheets("Deckblatt").Select
Sheets("Deckblatt").OLEObjects("CommandButton4").Object.Enabled = True
MsgBox "Als nächstes werden die ES Daten eingelesen !"
Else
Achtung2.Show
End If
Next I
End Sub
Also es hat alles funktioniert... wenn ich in meiner Listbox nix auswähle macht er Achtung2.Show, wenn ich etwas auswähle macht er auch Achtung2.Show...
Warum ? der code ist doch richtig gebaut, und er ging auch mal... ich weiß nicht an was das liegt, ich hoffe ihr könnt mir weiter helfen
Gruß
Mario