Home > Software engineering >  WORD VBA insert pictures in WORD form, image shift problem
WORD VBA insert pictures in WORD form, image shift problem

Time:09-16

USES the following VBA code to the Word of the table cell insert pictures in the picture does not appear in the cell (1, 3), but in the cell (1, 1), I tried some other line, is to appear at the beginning of the first cell,
 wdoc. Tables (1). The cell (1, 3). Select 
The Set mypic=wapp. Selection. InlineShapes. AddPicture (Filename:="E: \ VBA \ LDH JPG", LinkToFile:=False, SaveWithDocument:=True)


Assignment statements and added to the cell can be achieved in the normal position insert code is as follows:
 wdoc. Tables (1). The cell (1, 3). Select 
Wdoc. Tables (1). The cell (1, 3) Range. The Text=""
The Set mypic=wapp. Selection. InlineShapes. AddPicture (Filename:="E: \ VBA \ LDH JPG", LinkToFile:=False, SaveWithDocument:=True)


Didn't understand the reason, a great god answer ~
  •  Tags:  
  • VBA
  • Related