-
FlexPro
- Auf einen Blick
- Features & Optionen
- Einsatzgebiete
- Alle Vorteile
- Neu in FlexPro 2021
- FlexPro gratis testen
- FlexPro View OEM Freeware
- Kaufberatung
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produkte
- News
- Support
- Unternehmen
- Jobs
- Kontakt
- Login
- Language
- +49 6894 929600
- infoweisang.com
- Google Maps
Home > Community > Automation and VBA > 2D_Diagramm mit VBA in Excel Tabelle einfügen > Antwort auf: 2D_Diagramm mit VBA in Excel Tabelle einfügen
Juli 11, 2023 um 8:36 am Uhr
#35460
Adrian Giurca
Moderator
Hi Mario,
the following approach can be adopted:
Option Explicit
Public Sub ParseFlexProDatabase()
ProcessFolder ThisDatabase.RootFolder
End Sub
Private Sub ProcessFolder(ByRef oFld As Folder)
' versteckte Ordner (wie den Vorlagenordner) überspringen
' skip hidden folders (like the template folder)
Dim sExportFolderPath As String
sExportFolderPath = "D:\Export\"
If Not oFld.Hidden Then
Dim oObjs As FpObjects
Dim oObj As FpObject
Set oObjs = oFld.Objects()
For Each oObj In oObjs
If (oObj.ObjectType = fpObjectType2DDiagram) Or _
(oObj.ObjectType = fpObjectTypeColumnTable) Or _
(oObj.ObjectType = fpObjectTypeCellTable) Then
oObj.Export fpExportFormatJPEG, sExportFolderPath & Replace(oObj.FullName, "\", "_") & ".jpg"
End If
Next oObj
' Unterordner rekursiv bearbeiten
' Edit subfolders recursively
Set oObjs = oFld.Objects(fpObjectTypeFolder)
Dim oSubFld As Folder
For Each oSubFld In oObjs
ProcessFolder oSubFld
Next
End If
End Sub
BR
Adrian