Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 10-28-2023, 09:01 PM
RobertDany RobertDany is offline Apply Image formatting to all pictures in the word using VBA Windows 7 64bit Apply Image formatting to all pictures in the word using VBA Office 2013
Novice
Apply Image formatting to all pictures in the word using VBA
 
Join Date: Jul 2021
Posts: 22
RobertDany is on a distinguished road
Post Apply Image formatting to all pictures in the word using VBA

Hi,


I have many images in the document, inline shapes, and wrapped (top and bottom)
I want to apply a border to all images (1pt) and disable the already created shadow for it.
I made this VBA, but doesn't work for wrapped shapes

Code:
Dim pic As InlineShape

For Each pic In ActiveDocument.InlineShapes
  pic.Borders.OutsideLineStyle = wdLineStyleSingle
  pic.Borders.OutsideLineWidth = wdLineWidth010pt
  pic.Shadow.Visible = False
Next
Thanks
Reply With Quote
 

Tags
macro, shapes, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apply Image formatting to all pictures in the word using VBA Apply Bold Formatting to a long list of word Macro luciusrdv Word VBA 1 05-07-2021 02:05 PM
Apply Image formatting to all pictures in the word using VBA Apply Picture formatting to all pictures in the word file si14 Drawing and Graphics 13 07-28-2018 03:31 AM
Apply Image formatting to all pictures in the word using VBA Make a macro apply only on selected pictures Mattia Word VBA 2 11-10-2017 12:52 AM
VBA Word Table - Select More than 1 Column at a time - Apply Formatting jc491 Word VBA 12 09-24-2015 06:03 AM
how do i apply any change to all pictures in one document greenil Word 0 06-18-2013 12:56 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:00 PM.


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