OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Thread Tools Search this Thread Display Modes
Old 13-12-2011, 07:58
shelbym's Avatar
shelbym shelbym is offline
Senior Member
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,791
Blog Entries: 15
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default Export by Page and Layer

The following will Export by each layer of each page and name each .psd file that way. Hope it helps:
Sub ExportByLayer()
    Dim p As Page, l As Layer
    Dim expflt As ExportFilter
    For Each p In ActiveDocument.Pages
        For Each l In p.Layers
            l.Shapes.All.CreateSelection 'Select objects on this layer
            'Export the Selection
            If ActiveSelection.Shapes.Count <> 0 Then
                Set expflt = ActiveDocument.ExportBitmap("D:\Temp\Export\MyFile-" & p.Name & "-" & l.Name & ".psd", cdrPSD, cdrSelection, cdrRGBColorImage, , , 150, 150, cdrNormalAntiAliasing, False, True, True, False, cdrCompressionNone)
            End If
        Next l
    Next p
End Sub
Best of luck,

Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 16:04.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com