Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-14-2015, 05:52 AM
choper choper is offline Adding a oval shape in word and pasting image into it from clipboard Windows 7 64bit Adding a oval shape in word and pasting image into it from clipboard Office 2010 64bit
Novice
Adding a oval shape in word and pasting image into it from clipboard
 
Join Date: Jun 2015
Posts: 3
choper is on a distinguished road
Default Adding a oval shape in word and pasting image into it from clipboard

hey guys, as title says.


im trying to create an oval shape in word vba and pasting an image to it from clipboard.
managed to get it working with filedialog.
but i wanted to do so with image copied to clipboard, as it possible via regular shape adding in word.
any ideas how to do so ?
using office 2010 btw.
thx
Reply With Quote
  #2  
Old 06-14-2015, 07:15 AM
gmayor's Avatar
gmayor gmayor is offline Adding a oval shape in word and pasting image into it from clipboard Windows 7 64bit Adding a oval shape in word and pasting image into it from clipboard Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

How about

Code:
Dim oShape As Shape
    Set oShape = ActiveDocument.Shapes.AddShape(msoShapeOval, 50, 50, 400, 300)
    oShape.Fill.ForeColor = &HFFFFFF
    oShape.TextFrame.TextRange.Paste
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 06-14-2015, 07:24 AM
choper choper is offline Adding a oval shape in word and pasting image into it from clipboard Windows 7 64bit Adding a oval shape in word and pasting image into it from clipboard Office 2010 64bit
Novice
Adding a oval shape in word and pasting image into it from clipboard
 
Join Date: Jun 2015
Posts: 3
choper is on a distinguished road
Default

it pasted it in the middle , not like a fish eye as it suppose do.
this is how it looks like with the code

Reply With Quote
  #4  
Old 06-14-2015, 10:17 PM
macropod's Avatar
macropod macropod is offline Adding a oval shape in word and pasting image into it from clipboard Windows 7 64bit Adding a oval shape in word and pasting image into it from clipboard Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,956
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by choper View Post
it pasted it in the middle , not like a fish eye as it suppose do.
Word can't turn a rectangular image into a fish-eye version by merely pasting it into an oval. You should use a graphics program for that. AFAIK the best Word can do when inserting a rectangular image into an oval is to crop the parts of the image that don't fit, so you get an oval-shaped image. Naturally, this will result in parts of the image not appearing, even though they're present.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #5  
Old 06-14-2015, 11:16 PM
gmayor's Avatar
gmayor gmayor is offline Adding a oval shape in word and pasting image into it from clipboard Windows 7 64bit Adding a oval shape in word and pasting image into it from clipboard Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

You would have to save the image as a file in order to use it as a shape fill.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #6  
Old 06-15-2015, 01:04 AM
choper choper is offline Adding a oval shape in word and pasting image into it from clipboard Windows 7 64bit Adding a oval shape in word and pasting image into it from clipboard Office 2010 64bit
Novice
Adding a oval shape in word and pasting image into it from clipboard
 
Join Date: Jun 2015
Posts: 3
choper is on a distinguished road
Default

tho its possible pasting from clipboard via filling menu in shape design, i guess its not possible codewize.
thx guys for replying.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copied shape/text box pastes as an image in Word spectator Word 0 06-04-2014 08:45 AM
Adding a oval shape in word and pasting image into it from clipboard Shift key is pasting from clipboard...WHY? nc1105 Word 2 01-02-2014 11:57 PM
Adding a oval shape in word and pasting image into it from clipboard Excel vba adding field in word table/shape in a header Hdr Excel 1 02-04-2013 04:40 PM
Pasting image captured with a java program 'on to clipboard' into MSWord 2007 is blur tarunkumarreddy Word 0 02-03-2012 09:42 PM
Adding a oval shape in word and pasting image into it from clipboard Adding Image into a excel cell and adding a hyperlink to the image saravananiyyanar Excel 3 05-04-2011 08:31 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:40 PM.


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