
And once we find any sign of Word damage, the best way to recover data is to get a repairing tool. This means we have to check data integrity regularly.
There is always the risk to losing data or have it compromised somehow. Here is the outcome: Keep an Eye on Data Integrity Now there are 2 pictures in one page and each has its name below it. Remember to enter height first and then the width.
Now in “Height and Width” box, enter values and use comma to separate. In “Resize Picture” box, click “Yes” to resize all pictures and “No” to cancel it. Next in “Picture Number” box, enter a number representing the total number of pictures you want in a single page. Just pick the folder you keep pictures in step 1 and click “OK”. While running the macro, “Browse” window will pop up. ObjInlineShape.Width = Split(strPictureSize, ",")(1) ObjInlineShape.Height = Split(strPictureSize, ",")(0) StrPictureSize = InputBox("Input the height and width of the picture, seperated by comma", "Height and Width", "For exemple:500,500") NResponse = MsgBox("Do you want to resize all pictures?", 4, "Resize Picture") If = strPictureNumber * n Thenįor Each objInlineShape In ActiveDocument.InlineShapes Selection.TypeText Text:=Left(strFile, InStrRev(strFile, ".") - 1) Selection.Collapse Direction:=wdCollapsEnd FileName:=StrFolder & strFile, LinkToFile:=False, SaveWithDocument:=True StrPictureNumber = InputBox("Input the number of the picture for each page", "Picture Number", "For exemple: 1") StrFile = Dir(StrFolder & "*.*", vbNormal) Set dlgFile = Application.FileDialog(msoFileDialogFolderPicker) Sub InsertSpecificNumberOfPictureForEachPage() Open the module by double click and paste following codes:. And on the drop-down menu, choose “Module”. Then press “Alt+ F11” to invoke VBA editor in Word. First of all, arrange all pictures to be inserted under the same folder. Batch Insert Multiple Pictures to Document Thirdly, it resizes pictures according to the size numbers you enter. Secondly, it inserts the name below each picture. Firstly, it inserts exact number of pictures you specify in each page. The macro we are going to present you is capable of following functions: How about use a macro to automatically perform the task? Once you insert a picture into document, you may have to manually resize it or enter its name around. You can feel comfortable while working with pictures in Word. In this article, we would like to offer you the way to batch insert multiple pictures to your Word document.