Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-12-2012, 07:38 AM
AndyDDUK AndyDDUK is offline VBA for active slide? Windows 7 64bit VBA for active slide? Office 2010 64bit
Advanced Beginner
VBA for active slide?
 
Join Date: Oct 2012
Posts: 32
AndyDDUK is on a distinguished road
Default VBA for active slide?

Hi

What changes to I need to make this refer to the active slide, not slide 1?

With ActivePresentation.Slides(1).Shapes.PasteSpecial(p pPastePNG)




Cheers


Andy
Reply With Quote
  #2  
Old 11-12-2012, 08:27 AM
Cosmo Cosmo is offline VBA for active slide? Windows Vista VBA for active slide? Office 2007
Competent Performer
 
Join Date: Mar 2012
Posts: 240
Cosmo is on a distinguished road
Default

Try using ActiveWindow.View.Slide.SlideNumber

Quote:
ActivePresentation.Slides(ActiveWindow.View.Slide. SlideNumber).Shapes.PasteSpecial(p pPastePNG)
Reply With Quote
  #3  
Old 11-12-2012, 08:33 AM
AndyDDUK AndyDDUK is offline VBA for active slide? Windows 7 64bit VBA for active slide? Office 2010 64bit
Advanced Beginner
VBA for active slide?
 
Join Date: Oct 2012
Posts: 32
AndyDDUK is on a distinguished road
Default

Brilliant Cosmo, thank you so much!
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA for active slide? If color is red then active ruby_2014 Excel 2 01-09-2012 01:41 AM
Can I keep a drawing tool active? sandy Drawing and Graphics 0 11-13-2009 09:58 AM
Help on option button active X aligahk06 Excel 0 11-03-2009 11:39 PM
Active Directory ababc Misc 0 09-19-2006 06:18 AM
Active Directory nukkumatti Misc 0 11-16-2005 08:42 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:46 AM.


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