Supportnet Computer
Planet of Tech

Supportnet / Forum / Tabellenkalkulation

Kommentare in Datei umleiten und bearbeiten





Frage

Ich möchte die Kommentare eines Tabellenblattes Excel 97 in eine Textdatei umleiten und übersichtlich auflisten und ordnen. Ist das möglich? Und wenn, wie? Herzlichen Dank für alle Antworten.

Antwort 1 von Monika

Hallo Ullrich,

ich habe das Problem mit einem VBA-Programm gelöst. Das Programm schreibt alle Kommentare einer Arbeitsmappe in ein neues Blatt.

Sub kommentare()

Dim sh As Worksheet
Dim wb As Workbook
Set wb = ActiveWorkbook

With Sheets.Add
.Name = "alle Kommentare"
End With

For Each sh In wb.Sheets für jedes Blatt in der Arbeitsmappe
Set cmt = sh.Comments cmt sind die Kommentare
If cmt.Count > 0 Then
For Each c In cmt für jeden Kommentar
auf neues Blatt eintragen, dort letzte beschriebene Zeile suchen
i = i + 1 Zähler für Zeile für Kommentar
letzte = Sheets("alle kommentare").Range("A65356").End(xlUp).Row
Range("A" & i) = c.Text
Next
End If
Next
End Sub

Viel Glück!
Monika

Ich möchte kostenlos eine Frage an die Mitglieder stellen:


Ähnliche Themen:


Suche in allen vorhandenen Beiträgen: