![]() |
|
|
|
#1
|
|||
|
|||
|
Hi, having converted EPUB ebook to DOCX format I want all pictures to be centered (now all pictures are alligned left). I assume this is not so difficult to solve using VBA so any help would be nice.
Thanks in advance. There are so many pictures thus manual change of allignment would be very stupid. Book itself is of size more than 65 MB. |
|
#2
|
|||
|
|||
|
Try:
Code:
Sub Centerallpictures()
'
For Each oILShp In ActiveDocument.InlineShapes
oILShp.Select
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
Next
'
End Sub
|
|
#3
|
|||
|
|||
|
It works, thank you very much!
|
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to center a title within the page margins not the document's margins in word 2013 | wondermuse | Word | 1 | 12-31-2014 11:32 PM |
How To Center The Title On a Word Document
|
simon teddy | Word | 2 | 11-13-2014 01:56 PM |
Justify left center and right center on same line
|
DiGug | Word | 3 | 10-02-2014 02:43 PM |
MS Word 2010 Center a document on paper
|
Eddyisrich403 | Word | 1 | 03-12-2014 02:09 AM |
| how do i apply any change to all pictures in one document | greenil | Word | 0 | 06-18-2013 12:56 AM |