Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-27-2012, 10:12 AM
excelledsoftware excelledsoftware is offline Custom Autoshapes Windows 7 64bit Custom Autoshapes Office 2003
IT Specialist
Custom Autoshapes
 
Join Date: Jan 2012
Location: Utah
Posts: 455
excelledsoftware will become famous soon enough
Default

Here is the final result. I love adding an inputbox to give the ability to choose different shapes. Thanks again John
Sub copyShape()
Dim mylibrary As Presentation
Dim osld As Slide
Dim shapebox As String
shapebox = InputBox("type in the shape name")
'open library file with NO window
Set mylibrary = Presentations.Open(Environ("USERPROFILE") & "\My Documents\CustomShapesPresentation.ppt", WithWindow:=False)
'copy shape
mylibrary.Slides(1).Shapes(shapebox).Copy
'paste into current slide
ActiveWindow.View.Slide.Shapes.Paste
'close library
mylibrary.Close


End Sub
Reply With Quote
  #2  
Old 06-03-2012, 09:04 AM
excelledsoftware excelledsoftware is offline Custom Autoshapes Windows 7 64bit Custom Autoshapes Office 2003
IT Specialist
Custom Autoshapes
 
Join Date: Jan 2012
Location: Utah
Posts: 455
excelledsoftware will become famous soon enough
Default

Sorry to reactivate this thread but is there a way to do this same thing but by using a drop box to select the shape I want (Drop box would need to just be text)?
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Autoshapes Custom Header mayurnk Word 1 12-29-2010 09:35 PM
Autoshapes disappear nsv Word 0 09-29-2010 12:09 AM
Custom Autoshapes Custom CD rkovelman PowerPoint 1 07-15-2010 08:50 AM
Dimension Autoshapes karthikcoep Word 0 01-16-2009 07:42 AM
Unable to insert AutoShapes earthling Word 0 01-01-2006 10:16 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:54 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft