GDG Code Chunks, Discussion, VBA Snippets for CorelDRAW, Simple Macro Helpers!

cool vba macros for corel show cart gdg corel draw macros checkoutMyAccount corel macros
VBA Corel Macro Help
john's macros
thanks for stopping by gdg macros















Helpful VBA Code

Nothing on CorelDraw 2026 macros yet. I will keep you posted.
NEW for CorelDraw 2025: GDG Color Click SUPREME

GDG Macros Suite 2023 and GDG Macros Suite 2024 and GDG Macros Suite 2025
(older versions of the products available below, as well)

Join me on Facebook to stay up to date with news, updates. Subscribe to my YouTube Channel for tutorial videos and tips. Need a custom macro? Contact me.
Not all macros are guaranteed to be continued due to compatibility reasons or other. Read new-version policy here.
I appreciate everyone! Upgrading macros and maintaining this site is quite a task for me. Want to contribute? Please DONATE
^ Hide these messages to save screen space ^

<<Back to helpful code list

Space apart shapes

Decription: This will get you started if you need to space apart shapes on the page.

Date: 2010-05-04 Author: John

Code:
Sub space()

Dim s As Shape
Dim sr As ShapeRange
Dim i As Integer
Dim x#, y#, w#, h#
Dim x1#, y1#, w1#, h1#
Dim addup As Double
Dim space As Double

space = 0.5

Set sr = ActiveSelectionRange
sr(1).GetBoundingBox x, y, w, h

ActiveDocument.ReferencePoint = cdrBottomRight

addup = w
For i = 1 To sr.Count
    If i > 1 Then
        sr(i).GetBoundingBox x1, y1, w1, h1
        sr(i).SetPosition x + w1 + addup, y
        addup = addup + w1 + space
    Else
        sr(i).Move -space, 0
    End If
    
Next i

End Sub


Title: Thankful for these codes
Comment left by: Sheir
Date: 2011-12-04
Comment left:
Hello,

I have been trying to create my own, however I have not been successful yet.

I record, and run the macro, but it only repeats what I did to the same objects, not sure how to have the actions continue with the other objects.

I greatly appreciate your time to post these.




gdg




First Previous


corel macros boost workflow
*Searches the FREE and Commercial Macros


GDG Macros for CorelDraw 2025
\
CorelDraw macros for version 2024

CorelDraw macros for version 2023

CorelDraw macros for version 2022

CorelDraw macros for version 2020

CorelDraw macros for version 2019

CorelDraw macros for version 2018

CorelDraw macros for version 2017

macros for coreldraw x8

macros for coreldraw x7

macros for corel draw x6

macros for corel draw x6

FIND IT ON

find it on yahoo

FIND IT ON

find it on google