

Insert VBA code below at the beginning of your code below assign the picture into a bookmark in MS Word.Īfter click the Insert Photo button, it will open file my Photo of MS Word and display a photo that is selected from the FileDialog above on the bookmark location below a statement Insert Photo here: as we set on Step 2.We can use a FileDialog method to select the photo from the FileDialog winow (More information at : )

Some time you may want to insert a specific image file on your own. Path = “C:\Users\thong\Downloads\my Photo.docx”Īfter click the Insert Photo button, it will open file my Photo of MS Word and display a photo on the bookmark location below a statement Insert Photo here: as we set on Step 2. If we have MS Word file in different folder from Access file then we need to set the file path as (example): We also want to insert a picture file from our specific location (for example: “c:\dropbox\cat.jpg”) into the location of our bookmark (“Photo”) on word file. This Word file is located in the same folder of the Access file. We need to insert the VBA code to open file my Photo of MS Word that we already created on Step 1. Click on three dot (…) at the end of On Click Event Procedure.There is a limit to the number of chars and some characters that are not allowed. You can use bookmarks to build formulas that include references to numbers elsewhere in the document Blocks of text are surrounded by square brackets. Double-Click on the Insert Photo button to open a Property Sheet Word uses automatic bookmarks inorder to create the Index, Contents etc.Add a button and name it as Insert Photo.
#HOW TO CREATE A BOOKMARK IN WORD HOW TO#
