Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-20-2019, 06:38 AM
Yonatanx3 Yonatanx3 is offline Changing picture wrap text to Square Windows 10 Changing picture wrap text to Square Office 2010
Novice
Changing picture wrap text to Square
 
Join Date: Jan 2019
Posts: 1
Yonatanx3 is on a distinguished road
Default Changing picture wrap text to Square

Hi guys,
I have many word files with 100 or more pictures inserted inside each of them.
Right now, all of the pictures are In Line with Text layout, and I need to change them all to Square option.


Can someone please help me and write down a VBA code that will change all the pictures in a word file please?
Thanks alot, Yonatan.
Reply With Quote
  #2  
Old 01-20-2019, 02:44 PM
macropod's Avatar
macropod macropod is offline Changing picture wrap text to Square Windows 7 64bit Changing picture wrap text to Square 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

Try:
Code:
Sub Demo()
Application.ScreenUpdating = False
With ActiveDocument
  While .InlineShapes.Count > 0
    .InlineShapes(1).ConvertToShape
  Wend
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #3  
Old 01-20-2019, 03:49 PM
macropod's Avatar
macropod macropod is offline Changing picture wrap text to Square Windows 7 64bit Changing picture wrap text to Square 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

Cross-posted at: http://www.vbaexpress.com/forum/show...text-to-Square
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing picture wrap text to Square Wrap Text Inside Picture marconexcel Drawing and Graphics 2 02-02-2018 05:01 PM
Changing picture wrap text to Square Wrap text in text box around image with transparent background pstidsen Word 4 02-08-2016 03:30 PM
Changing picture wrap text to Square Wrap TABLES around picture? ShankedS Word Tables 2 11-16-2015 04:27 PM
Powerpoint automatically changing picture size when adding a picture (2010) One_Life PowerPoint 7 01-20-2012 06:57 AM
Changing picture wrap text to Square Tiny square but no picture pasted Seafarer Word 3 12-28-2011 05:35 PM

Other Forums: Access Forums

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