![]() |
|
|
|
#1
|
|||
|
|||
|
Hi Paul!
What is the code to expand the table so the text in the table is not written in several lines (unless it is so large the it does not fit on one row on the whole page). See attached pic's . The first one show the result now after the functions AddImageCaptionTables and AddCaptionText and the second is the look and feel I would like to have. pic1.jpg pic2.jpg (You should now that I think this really good site to get help from. It helps me a lot!) Kind Regards Benble |
|
#2
|
||||
|
||||
|
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 |