Makro in PhotoPaint
#6
Hallo Günther,

probiere es mit dem folgenden Makro:

Code:
Sub JPGneuAusAuswahl()
   Dim L As Layer
   Dim ND As Document
   Dim DN As String
   Dim EF As ExportFilter
   If ActiveDocument.Mask.IsEmpty Then
       MsgBox "Keine Maske!", vbCritical, "Fehler"
       Exit Sub
   End If
   DN = Left(ActiveDocument.FullFileName, Len(ActiveDocument.FullFileName) - 3) & "jpg"
   Set L = ActiveDocument.Layers.Add("JPG", , , pntCopySelection)
   L.Cut
   Set ND = Application.CreateDocumentFromClipboard
   ND.Layers.Merge
   DN = InputBox("Dateiname", "JPG Speichern", DN)
   Set EF = ND.SaveAs(DN, cdrJPEG)
   EF.Finish
End Sub

Erst eine Maske erstellen und dann das Makro starten.
Du kannst aber eine Auswahl auch als JPG exportieren (ohne Makro).

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
  PhotoPaint per Makro beenden Karthagos 8 1.894 15.02.2025, 09:51
Letzter Beitrag: Karthagos
  PhotoPaint 2021 vs 2024 Karthagos 4 380 28.12.2024, 10:14
Letzter Beitrag: Karthagos
  PhotoPaint Abstürze Karthagos 3 441 18.10.2024, 21:54
Letzter Beitrag: mvm
  PhotoPaint lässt sich nach minimieren aus der Taskleiste nicht mehr öffnen Karthagos 2 474 16.04.2024, 11:05
Letzter Beitrag: Karthagos
  PhotoPaint Standard Marcell 1 881 20.11.2022, 17:48
Letzter Beitrag: Karthagos
  PhotoPaint und Stifttablet Karthagos 5 1.908 27.01.2021, 00:46
Letzter Beitrag: Unkraut
  Bilddarstellung in PhotoPaint vs. IrfanView Karthagos 10 3.310 27.11.2020, 01:44
Letzter Beitrag: koter
  Radiergummi-Form (Photopaint H&S 2018) Alphazalpha 2 1.559 31.01.2020, 00:11
Letzter Beitrag: Alphazalpha
  Programmfehler PhotoPaint 2019 Marcell 4 3.247 23.01.2020, 12:07
Letzter Beitrag: norre
  Corel Photopaint Cursor springt Momo61 6 4.519 15.01.2020, 12:42
Letzter Beitrag: Alphazalpha