Hey everyone,
I use the WoXXoM Export to JPG macro every day.
It has a feature where if you click a button, it will name the JPG files whatever the current name of the document itself is.
So, if the CDR file itself is saved as MyArtwork.cdr, after you click the button it will name all JPG file generated as MyArtwork.cdr.jpg
I was wondering if any of you macro gurus knew how to edit this macro so that when you press the button to use the filename, it wont add the '.cdr' extension to the filename of the JPG.
I just need the JPG files to be saved with the names being like "MyArtwork.jpg" and not "My Artwork.cdr.jpg"
I know that I can manually delete the .cdr portion of the filename, but that's just an extra step that I would assume could be easily adjusted and removed from this macro.
Thanks!
Jason
wx_ExportJPG.gms
@ line 80 replace code with this
Private Sub LDocument_Click() If Not ActiveDocument Is Nothing Then txPrefix = ActiveDocument.Name '''''''''''''''''''''''''''''''''''''''''''''' With txPrefix .SelStart = .SelStart - 4 .SelLength = 4 .SelText = "" .SetFocus End With End Sub
Here is the updated macro for 64Bit DRAW. I have quickly tested with X7 and it worked. I have also corrected the program as suggested by ggut. Hope it helps.
Do you have this macro that would work in CorelDraw 2017?