Topic
Kommentare auslesen aller Datensätze im Ordner
Home page › Community › Automation and VBA › Read comments from all data records in the folder
- This topic has 1 reply and 2 voices and was last updated 7 years, 1 month ago ago by Bernhard Kantz.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
22.01.2018 at 16:23 #35238HannesundCrewParticipant
Hallo,
ich habe in FlexPro eine .csv-Datei eingelesen, dadurch ist dann ein Ordner entstanden. In diesem Ordner sind jetzt rund 40 Datensätze( in der Objektliste zu sehen) enthalten mit unterschiedlichen Namen. Nun möchte ich von allen Dateien die Kommentare über VBA einlesen und diese dann in eine Liste in VBA ablegen.
23.03.2018 at 10:52 #35239Bernhard KantzParticipantDas folgende Code-Beispiel zeigt die Kommentare der im Ordner “Messung A” enthaltenen Datensätze an.
Public Sub GetComments() Dim fld As Folder Set fld = ThisDatabase.RootFolder("Messung A", fpObjectTypeFolder) Dim obj As DataSet Dim res As String For Each obj In fld.Objects(fpObjectTypeDataSet) res = res & obj.CommentsY & vbCrLf Next MsgBox res End Sub
Dies kann leicht auf Ihr Problem angepasst werden.
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.