PC Review


Reply
Thread Tools Rate Thread

How create a jigsaw ?

 
 
Céline
Guest
Posts: n/a
 
      31st Jul 2007
Hi,

I'm trying to create a jigsaw puzzle with VBA PowerPoint. But I don't know
how to drag a shape. Is there someone who can help me to this ?

Thanks a lot,
Céline


 
Reply With Quote
 
 
 
 
Brian Reilly, MVP
Guest
Posts: n/a
 
      5th Aug 2007
Use the .top and .left and .width and .height properties to position a
shape and size it.

Here's a little snippit of code to get you started.

Option Explicit

'Developed by Brian Reilly, MVP 8-05-2007
Public lTop As Long
Public lLeft As Long
Public lWidth As Long
Public lHeight As Long

Sub GetPosition()
'Picks up the position and size of a selected shape
'and stores it as a variable
With ActiveWindow.Selection.ShapeRange
MsgBox .Top
lTop = .Top

MsgBox .Left
lLeft = .Left

MsgBox .Width
lWidth = .Width

MsgBox .Height
lHeight = .Height
End With
End Sub

Sub Place_Position()
'Uses the stored variable values to reposition and
'resize a selected shape
With ActiveWindow.Selection.ShapeRange
.Top = lTop
.Left = lLeft
.Width = lWidth
.Height = lHeight
End With
End Sub

Brian Reilly, MVP

On Tue, 31 Jul 2007 20:17:33 +0200, "Céline" <(E-Mail Removed)>
wrote:

>Hi,
>
>I'm trying to create a jigsaw puzzle with VBA PowerPoint. But I don't know
>how to drag a shape. Is there someone who can help me to this ?
>
>Thanks a lot,
>Céline
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
next slide when jigsaw is done? Dennis Meding Microsoft Powerpoint 7 1st Aug 2007 06:47 PM
How do I create a Jigsaw Puzzle =?Utf-8?B?Um9nZWxpbw==?= Microsoft Powerpoint 6 27th Jul 2007 04:56 PM
how to create a powerpoint with a jigsaw puzzle, piece by piece =?Utf-8?B?TmFsaWNl?= Microsoft Powerpoint 1 11th May 2005 02:29 PM
Jigsaw Puzzler Anonymous Freeware 2 14th Mar 2004 02:45 PM
jigsaw puzzles Alan Sykes Windows XP Photos 1 23rd Nov 2003 07:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:24 AM.