Makro in PhotoPaint
#12
Hallo Günther,

ein neuer Versuch:

Code:
Sub JPGneuAusAuswahl()
   Dim L As Layer
   Dim ND As Document
   Dim DN As String, DName As String, DPfad As String
   Dim EF As ExportFilter
   If ActiveDocument.Mask.IsEmpty Then
       MsgBox "Keine Maske!", vbCritical, "Fehler"
       Exit Sub
   End If
   DName = Left(ActiveDocument.FileName, Len(ActiveDocument.FileName) - 3) & "jpg"
   DPfad = ActiveDocument.FilePath
   DN = CorelScriptTools.GetFileBox("JPG (*.jpg)|*.jpg", "Datei Speichern", 1, "Neu", ".jpg", DPfad)
   If Trim(DN) = "" Then Exit Sub
   Set L = ActiveDocument.Layers.Add("JPG", , , pntCopySelection)
   L.Cut
   Set ND = Application.CreateDocumentFromClipboard
   ND.Layers.Merge
   Set EF = ND.SaveAs(DN, cdrJPEG)
   EF.Finish
End Sub

Gruß

Koter
Zitieren



Nachrichten in diesem Thema
Makro in PhotoPaint - von Karthagos - 22.09.2019, 12:13
RE: Makro in PhotoPaint - von norre - 22.09.2019, 14:20
RE: Makro in PhotoPaint - von Karthagos - 22.09.2019, 16:22
RE: Makro in PhotoPaint - von norre - 22.09.2019, 16:29
RE: Makro in PhotoPaint - von Karthagos - 22.09.2019, 16:45
RE: Makro in PhotoPaint - von koter - 23.09.2019, 22:47
RE: Makro in PhotoPaint - von Karthagos - 24.09.2019, 11:12
RE: Makro in PhotoPaint - von koter - 24.09.2019, 14:52
RE: Makro in PhotoPaint - von norre - 24.09.2019, 13:54
RE: Makro in PhotoPaint - von Unkraut - 24.09.2019, 16:37
RE: Makro in PhotoPaint - von Karthagos - 24.09.2019, 14:21
RE: Makro in PhotoPaint - von Karthagos - 24.09.2019, 15:16
RE: Makro in PhotoPaint - von koter - 24.09.2019, 15:52
RE: Makro in PhotoPaint - von Karthagos - 24.09.2019, 16:12
RE: Makro in PhotoPaint - von Karthagos - 24.09.2019, 17:12
RE: Makro in PhotoPaint - von koter - 23.03.2024, 10:11
RE: Makro in PhotoPaint - von Karthagos - 23.03.2024, 12:02

Möglicherweise verwandte Themen...
Thema Verfasser Antworten Ansichten Letzter Beitrag
  Tastenfolge als Makro Karthagos 9 2.379 06.10.2025, 18:23
Letzter Beitrag: Karthagos
  PhotoPaint per Makro beenden Karthagos 8 4.681 15.02.2025, 09:51
Letzter Beitrag: Karthagos
  PhotoPaint 2021 vs 2024 Karthagos 4 2.057 28.12.2024, 10:14
Letzter Beitrag: Karthagos
  PhotoPaint Abstürze Karthagos 3 2.131 18.10.2024, 21:54
Letzter Beitrag: mvm
  PhotoPaint lässt sich nach minimieren aus der Taskleiste nicht mehr öffnen Karthagos 2 1.951 16.04.2024, 11:05
Letzter Beitrag: Karthagos
  PhotoPaint Standard Marcell 1 1.832 20.11.2022, 17:48
Letzter Beitrag: Karthagos
  PhotoPaint und Stifttablet Karthagos 5 3.871 27.01.2021, 00:46
Letzter Beitrag: Unkraut
  Bilddarstellung in PhotoPaint vs. IrfanView Karthagos 10 5.965 27.11.2020, 01:44
Letzter Beitrag: koter
  Radiergummi-Form (Photopaint H&S 2018) Alphazalpha 2 2.645 31.01.2020, 00:11
Letzter Beitrag: Alphazalpha
  Programmfehler PhotoPaint 2019 Marcell 4 5.069 23.01.2020, 12:07
Letzter Beitrag: norre