Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 10-28-2023, 09:46 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
Exclamation Change layout Image Layout, Center it and Apply Border VBA

I'm sorry, I found the macro, I can't delete my post
However, I will ask for a new code,
How to change the layout for all images in the document (inlined, wrapped, drew shapes) to the top and bottom layout and apply a border to them and make them in the center of the page.
Thanks
Reply With Quote
  #3  
Old 10-29-2023, 03:23 PM
Guessed's Avatar
Guessed Guessed is offline Apply Image formatting to all pictures in the word using VBA Windows 10 Apply Image formatting to all pictures in the word using VBA Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,977
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Can you explain why you want top/bottom wrapping rather than inline on their own paragraph? Keeping graphics inline is preferable for file size, pagination and manageability reasons.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply

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 09:39 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