Hi.
Can not upload video. Video too large.
Re-created video in 2 parts here:
http://community.coreldraw.com/forums/t/35391.aspx
and
http://community.coreldraw.com/forums/t/35392.aspx
~John
Here's the code for meantime.
Option ExplicitSub messWithShape() Dim s As Shape Dim sr As ShapeRange, sr2 As New ShapeRange Dim i As Long, w#, h# ActiveDocument.BeginCommandGroup "messin around" Optimization = True Set sr = ActivePage.Shapes.All For i = 1 To sr.Count Set s = sr(i) 'If s.SizeWidth > 2 Then sr2.Add doItToIt(s, w, h) 'End If Next i sr2.CreateSelection Optimization = False ActiveWindow.Refresh ActiveDocument.EndCommandGroupEnd SubPrivate Function doItToIt(ByVal s As Shape, ByRef w As Double, h#) As Shape s.Fill.UniformColor.CMYKAssign getRandomNumber(1, 100), getRandomNumber(1, 100), getRandomNumber(1, 100), getRandomNumber(1, 100) s.Rotate getRandomNumber(0, 360) 'w = s.SizeWidth 'h = s.SizeHeight 's.GetSize w, h Set doItToIt = sEnd FunctionPrivate Function getRandomNumber&(nLow&, nHigh&) Dim n1& Randomize n1 = CLng((nHigh - nLow) * VBA.Rnd + nLow) If n1 < nLow Then n1 = nLow If n1 > 100 Then n1 = nHigh getRandomNumber = n1End Function
Any chance you have a youtube account you can post these videos on? Once again thanks for doing these videos.