Thema Datum  Von Nutzer Rating
Antwort
21.07.2014 08:16:34 Faierdaife
NotSolved
21.07.2014 08:17:59 Faierdaife
NotSolved
21.07.2014 08:54:09 Amicro2000
NotSolved
21.07.2014 09:04:27 Faierdaife
NotSolved
21.07.2014 09:25:30 Amicro2000
NotSolved
21.07.2014 09:27:23 Amicro2000
NotSolved
21.07.2014 10:23:00 Gast56657
NotSolved
21.07.2014 10:36:59 Amicro2000
NotSolved
21.07.2014 10:43:26 Gast8897
NotSolved
21.07.2014 10:47:46 Gast99459
NotSolved
21.07.2014 10:58:09 Amicro2000
NotSolved
21.07.2014 11:00:21 Faierdaife
NotSolved
21.07.2014 11:13:21 Faierdaife
NotSolved
21.07.2014 11:14:21 Faierdaife
NotSolved
Rot Zwischenstand
21.07.2014 11:22:21 Amicro2000
NotSolved
21.07.2014 11:32:21 Faierdaife
NotSolved
21.07.2014 11:30:00 Nicht-Amicro2000
NotSolved
21.07.2014 11:43:31 Faierdaife
NotSolved
21.07.2014 11:46:32 Amicro2000
NotSolved
21.07.2014 11:55:10 Faierdaife
NotSolved
22.07.2014 05:56:41 Amicro2000
NotSolved
22.07.2014 05:57:59 Amicro2000
NotSolved
22.07.2014 06:50:00 Faierdaife
NotSolved
22.07.2014 07:17:54 Amicro2000
NotSolved
22.07.2014 07:21:32 Amicro2000
NotSolved
22.07.2014 07:57:27 Faierdaife
NotSolved
22.07.2014 10:04:28 Amicro2000
NotSolved
22.07.2014 10:32:55 Gast8414
NotSolved

Ansicht des Beitrags:
Von:
Amicro2000
Datum:
21.07.2014 11:22:21
Views:
832
Rating: Antwort:
  Ja
Thema:
Zwischenstand

hei,

der Text in der Text-datei ist ohne Punkte, aber kopiere dir mal diesen code in ein neues Modul.

Public Sub Text_einfügen()
    Dim c1 As Variant, c2 As Variant, i1 As Long, i2 As Long, Ganzer_text As String, z As Long, s As Long
    
    Ganzer_text = Aus_zwischenablage
    
    Application.ScreenUpdating = False
    
    c1 = Split(Ganzer_text, vbNewLine)
    For i1 = LBound(c1) To UBound(c1)
        s = 1: z = z + 1
        c2 = Split(c1(i1), Chr(9))
        For i2 = LBound(c2) To UBound(c2)
            If i1 = 0 Then
                Cells(z, s) = c2(i2)
            Else
                Cells(z, s) = c2(i2) * 1
                
                Select Case i2
                    Case Is = 0
                        Cells(z, s).NumberFormat = "00.00"
                    Case Is = 1
                        Cells(z, s).NumberFormat = "0.0000"
                    Case Is = 2
                        Cells(z, s).NumberFormat = "0.0000"
                    Case Is = 3
                        Cells(z, s).NumberFormat = "0.00000"
                    Case Is = 4
                        Cells(z, s).NumberFormat = "0.00000"
                    Case Is = 5
                        Cells(z, s).NumberFormat = "0.00000"
                End Select
            End If
            s = s + 1
        Next i2
    Next i1
    
    With Range("A:F")
        .Columns.AutoFit
        .HorizontalAlignment = xlCenter
        .VerticalAlignment = xlCenter
    End With
    
    Application.ScreenUpdating = True
End Sub

Public Function Aus_zwischenablage() As String
    Dim IE As Object
    'Dim CLP As String
    On Error Resume Next
    Set IE = CreateObject("HTMLfile")
    Aus_zwischenablage = IE.ParentWindow.ClipboardData.GetData("text")
    'MsgBox CLP
    Set IE = Nothing
End Function

 

Dann zuerst wieder deine Werte in in die Zwischenablage kopieren und dann das Sub "Text_einfügen" ausführen.

Achtung der code fügt die Werte in das aktuelle Tabellenblatt ein.

 


Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:



  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
21.07.2014 08:16:34 Faierdaife
NotSolved
21.07.2014 08:17:59 Faierdaife
NotSolved
21.07.2014 08:54:09 Amicro2000
NotSolved
21.07.2014 09:04:27 Faierdaife
NotSolved
21.07.2014 09:25:30 Amicro2000
NotSolved
21.07.2014 09:27:23 Amicro2000
NotSolved
21.07.2014 10:23:00 Gast56657
NotSolved
21.07.2014 10:36:59 Amicro2000
NotSolved
21.07.2014 10:43:26 Gast8897
NotSolved
21.07.2014 10:47:46 Gast99459
NotSolved
21.07.2014 10:58:09 Amicro2000
NotSolved
21.07.2014 11:00:21 Faierdaife
NotSolved
21.07.2014 11:13:21 Faierdaife
NotSolved
21.07.2014 11:14:21 Faierdaife
NotSolved
Rot Zwischenstand
21.07.2014 11:22:21 Amicro2000
NotSolved
21.07.2014 11:32:21 Faierdaife
NotSolved
21.07.2014 11:30:00 Nicht-Amicro2000
NotSolved
21.07.2014 11:43:31 Faierdaife
NotSolved
21.07.2014 11:46:32 Amicro2000
NotSolved
21.07.2014 11:55:10 Faierdaife
NotSolved
22.07.2014 05:56:41 Amicro2000
NotSolved
22.07.2014 05:57:59 Amicro2000
NotSolved
22.07.2014 06:50:00 Faierdaife
NotSolved
22.07.2014 07:17:54 Amicro2000
NotSolved
22.07.2014 07:21:32 Amicro2000
NotSolved
22.07.2014 07:57:27 Faierdaife
NotSolved
22.07.2014 10:04:28 Amicro2000
NotSolved
22.07.2014 10:32:55 Gast8414
NotSolved