![]() |
|
#9
|
||||
|
||||
|
Quote:
Quote:
PicWdth = .InlineShapes(i).Width and the code line that applies it is: .Columns.Width = PicWdth Without the second of the above lines, the table widths will fill the margins. A compromise might be to set a minimum width for PicWdth, via either of: If PicWdth < CentimetersToPoints(8.9) Then PicWdth = CentimetersToPoints(8.9) or: If PicWdth < InchesToPoints(3.5) Then PicWdth = InchesToPoints(3.5) immediately after the PicWdth = .InlineShapes(i).Width lines. You could, of course, change the units indicated to something else.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
| Tags |
| automatic figure caption |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
VBA to insert captions without appending to existing captions
|
Marrick13 | Word VBA | 17 | 03-21-2023 07:51 PM |
Help formatting Pictures inside a Text Box in Word 2013
|
jstumbo87 | Word | 2 | 01-29-2014 12:07 PM |
Macro to read word document
|
harishankar.selvaraju | Excel Programming | 1 | 06-14-2012 03:48 AM |
| Where we can find a Word document (docx file) that contains professional work inside? | Jamal NUMAN | Word | 0 | 06-26-2011 09:57 AM |
| Captions and Figures Inside a Frame...RIDICULOUS MS hasn't developed a solution!!! | stlsmiln | Word | 2 | 02-23-2010 02:15 AM |