![]() |
|
||||||||
| Site Links |
| Consulting |
| Knowledge Base |
| Training |
| Forum |
| Articles |
| Resources |
| Products |
| Cool Tools |
| Contact |
| About Us |
| Go to Page... |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
|
Create a shape with a predefined format?
Hi there, Im trying to create a macro that paste "flags" (shapes of different colors) to clasify the slides of a presentation.
I´m totally new to VBA. I managed to create a rectangular shape in the TOP RIGHT corner of the current slide, but it create a blue shape with blue border, and i want this shape to be red, 35% transparency and no border. Is there any way to pre-define the format of the shape before creating it? or should I change the shape´s format once it´s created? Thanks! VBA:
VBA tags courtesy of www.thecodenet.com
|
|
Local Time: 08:29 AM
Local Date: 05-24-2013 Location:
|
|
|
|
#2 |
|
|
I´ve changed the code a bit..
VBA:
VBA tags courtesy of www.thecodenet.com
|
|
Local Time: 08:29 AM
Local Date: 05-24-2013 Location:
|
|
|
|
#3 |
|
|
Creating a new shape will use the default properties for that shape. If you want it to always be a certain color (or change any other property) when you run the code, then you should set the properties after creating it.
VBA:
VBA tags courtesy of www.thecodenet.com
If you have multiple properties you can set them like this: VBA:
VBA tags courtesy of www.thecodenet.com
Otherwise, your script will always use whatever are set as the default shape properties when the script runs. |
|
Local Time: 07:29 AM
Local Date: 05-24-2013 Location:
|
|
|
|
#4 | |||||||||||||||||||||||
|
|
Thanks! That worked, now im trying to put some text in those boxes... VBA:
VBA tags courtesy of www.thecodenet.com
|
|||||||||||||||||||||||
|
Local Time: 08:29 AM
Local Date: 05-24-2013 Location:
|
|
|
|
#5 |
|
|
|
|
Local Time: 07:29 AM
Local Date: 05-24-2013 Location:
|
|
|
|
#6 | |||||||||||||||||||||||
|
|
Thanks again! |
|||||||||||||||||||||||
|
Local Time: 08:29 AM
Local Date: 05-24-2013 Location:
|
|
![]() |
| Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|


