Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2014, 07:23 AM
lenguyenleduong lenguyenleduong is offline Insert and resize image Windows 7 32bit Insert and resize image Office 2010 32bit
Novice
Insert and resize image
 
Join Date: May 2014
Posts: 2
lenguyenleduong is on a distinguished road
Default

Quote:
Originally Posted by gmaxey View Post
This is because your code inserts the picture twice. Try:



Code:
With Application.Dialogs(wdDialogInsertPicture)
  If .Display = -1 Then
    If .Name <> "" Then
      Set Photo = ActiveDocument.InlineShapes.AddPicture(FileName:=.Name, _
                 LinkToFile:=False, SaveWithDocument:=True, _
                 Range:=Selection.Range)
    End If
  End If
End With
Thanks so much.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shortcut for image resize Hatthans PowerPoint 0 01-06-2014 04:32 PM
How to resize the image in the header so that it fits the page Isadora Excel 1 08-20-2013 06:02 AM
Image proportional resize not functioning! alexfcm PowerPoint 0 09-27-2012 07:22 AM
Background image vs. insert image lilaria PowerPoint 0 04-18-2011 08:45 AM
Insert and resize image Insert Vector Image icu222much Office 2 11-07-2009 02:49 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:50 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