Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Word > Word VBA

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 11-12-2018, 08:30 PM
Photoinserts Photoinserts is offline Windows 10 Office 2016
Novice
 
Join Date: Nov 2018
Posts: 1
Photoinserts is on a distinguished road
Default Macro to insert multiple photos into separate tables

Hey,

In word I have 1 table per photo.

Each table is set out like this:

Row 1: 1 Column where I insert the photo


Row 2: 2 Columns - the first column I write the photo number, the second column I write a title
Row 3: 1 Column where I write a comment

I then have a return space to create a gap between the next table, then this continues on and on.

At the moment I copy and paste heaps of these tables in the document, then I manually insert individual photos one at a time. I'm wondering if its possible to create a macro where I could select all photos at once and have word insert them all in the correct place automatically. I figure I just need to make the macro insert the first photo, effectively hit the down arrow 4 times, then insert the next photo and so on. This way it allows for the table spacing I currently have setup, instead of clumping all the photos in one after the other in the same cell. I just don't know if this is possible.

I have looked on line, and found on this forum, macros that automatically insert a huge group of photos into different table rows and automatically give them a caption, however this isn''t quite what I'm after. I guess it could be possible to reformat my document to make it all one big table and have an empty row to replace the return gap I currently have in between my tables. However to someone with barely any knowledge of macros it seems like it would be easier to make the macro go down 4 times before inserting the next photo then formatting a complex table arrangement in the macro.

Thanks for the help.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word macro to insert text at the beginning of paragraph but skip tables ashalles135 Word VBA 5 09-26-2018 09:49 AM
Photos or graphics within text re-scaling inside tables DLM Drawing and Graphics 1 12-10-2017 06:40 PM
Macro to insert multiple pictures with adjustable column size nando88 Word VBA 6 05-09-2016 11:56 PM
Insert input box into macro to allow user to choose multiple text entries Hoxton118 Word VBA 6 04-03-2014 12:12 AM
Macro to Insert Text Into Cells Having Multiple Lines revans611 Excel Programming 4 10-24-2011 10:15 AM


All times are GMT -7. The time now is 11:30 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft