Category Archives: Images

No Thumbnail

Word VBA, Removing Picture Captions

In this article I will explain how you can remove caption from all the images in a document. As explained in the article Word VBA, Loop Through Images there are basically 2 types of images: Floating Inline The 2 image types have different types of caption and

No Thumbnail

Word VBA, Re-Adjust Caption

Lets say you’ve created caption for all your images, but then you decide to move the image to a new location. The caption will not follow and you will end up with something that looks like this: In this article I will explain how you can re-adjust

No Thumbnail

Word VBA, Picture Dimensions

In this article I will explain how you can use VBA for word to get the dimensions of a picture in a word document. The first step is to determine whether the picture is an inline or floating. For more information on this topic please see the

No Thumbnail

Word VBA, Adding Caption to Images

In this article I will explain how you can add captions to images using VBA. As previously explained there are 2 types of images: Inline Floating The concept of adding caption to the two different types of images is pretty much the same. – Inline

No Thumbnail

Word VBA Resize Pictures

In this article I will explain how you can use VBA for word to resize pictures in word. In order to resize a picture you would need determine 2 things: Whether the picture is an inline or floating shape The shape index associated with the picture Note: Throughout this

No Thumbnail

Word VBA, Get Picture Horizontal Position

In this article I will explain how you can get a pictures position using VBA for Word. – Step 1, Getting reference to the Image As explained in the article below, pictures can either be inline or floating: Word VBA, Loop Through Images The first thing

No Thumbnail

Word VBA Insert Images

In this article I will explain how you can use VBA for word to insert images to a word document using VBA. – Insert Single Image: The code below will insert the image “SP_A0155.jpg” from the location “D:StuffBusinessTemp”: Sub Example1() Selection.InlineShapes.AddPicture FileName:= _     “D:StuffBusinessTempSP_A0155.jpg”,

No Thumbnail

Word VBA, Shape Index

One of the things you need to know when working with shapes in VBA for word, is the shape index. Shape object are referenced through the Shapes and InlineShapes collections. In order for this to be done you must know the shape index. Shapes are indexed starting from the

No Thumbnail

Word VBA, Save Table as JPEG

In this article I will explain how you save a word table as a JPEG using VBA for word. Unless if you are willing to using windows API functions, I have yet to find a direct method for doing this in VBA for word. The