A macro code is needed in MS Powerpoint 2007 VBA which achieves the followings.
When a new & empty Powerpoint file is open on its first slide:
1. Finds the list of pictures and figures (extension .JPG or .BMP) in a directory.
2. Inserts each of them on slides.
--- if a picture is vertically oriented (by checking height > width), then two vertical pictures on a slide one at upper right corner, one at the left.
--- if horizontally oriented, then two pictures on a slide one under the other.
3. Resizes pictures to fit into 400 x 400 pixels square.
4. Writes the filename as a caption below each picture inside a textbox.