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

<<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: Also need vertically space apart shapes
Comment left by: Rajan Dhiman
Date: 2022-05-20
Comment left:
Please also send code vertically space apart shapes



gdg


Title: Group understanding
Comment left by: Pandavan
Date: 2020-08-18
Comment left:
I hawe group of objects, i select one fo object in group, how to know that you working with group when you hawe selected only one object from group?



gdg


Title: I thing you need "Align and Distribute" tool
Comment left by: bo_phi_yen
Date: 2015-05-26
Comment left:
it is "Align and Distribute" tool (hotkey is Ctr+Shift+A in X7, you can config for another version)
In VBA code (X7)

ActiveSelectionRange.AlignAndDistribute 7, 0, 0, 0, False, 2



gdg




Next Last


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