![]() |
#1
|
|||
|
|||
![]()
I use the code listed at the end of this post to paste images into Word and resize them. It works fine EXCEPT when I try to use it inside a table cell. When it executes inside a cell, the image is pasted but not resized.
I suspect that the Selection.Start = .Start - 1 is the problem but I don't know how to fix for this issue. Any help would be greatly appreciated! Sub FormatCard() With Selection .PasteAndFormat (wdPasteDefault) 'Pastes in the content .Start = .Start - 1 'move the start back one postion to include the image If .InlineShapes.Count = 1 Then 'resize the image With .InlineShapes(1) .Width = InchesToPoints(2.54) .Height = InchesToPoints(3.47) .LockAspectRatio = True End With End If End With End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
FaizanRoshan | Word VBA | 7 | 10-18-2015 03:34 PM |
Insert and resize image | lenguyenleduong | Word VBA | 2 | 05-11-2014 07:23 AM |
Shortcut for image resize | Hatthans | PowerPoint | 0 | 01-06-2014 04:32 PM |
How to resize the image in the header so that it fits the page | Isadora | Excel | 1 | 08-20-2013 06:02 AM |
Image proportional resize not functioning! | alexfcm | PowerPoint | 0 | 09-27-2012 07:22 AM |