Category Archives: VBA for Word

No Thumbnail

Word VBA, Modify Table Data

In this article I will explain how you can use VBA to modify a table‘s data in word. If there are multiple tables in a word document the first thing to do is to determine which table you are going to modify. Basically tables are indexed starting

No Thumbnail

Word VBA, Read All Lines

In this article I will explain how you can use VBA to read every line in a word document and store the values in a string array/collection. – Method 1: In this method the VBA code will select the entire document. After selecting the entire document the

No Thumbnail

Word VBA, Crop Images

In this article I will explain how you can use VBA for word to crop images. The first step is to determine the type of image. There are 2 types of images: Inline Floating I’ve previously explained about the 2 image types in the article

No Thumbnail

Word VBA, Open Document

In this article I will explain how you can open a word document using VBA. – Opening Word Document: If you are opening a word document from word you can use the code below: Sub main() Documents.Open (“D:TestFolderMain.docx”) End Sub Where “D:TestFolderMain.docx” is the path where the word