Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-24-2021, 01:23 PM
macaronipasta macaronipasta is offline Macro for Inserting Multiple Photos into Word but retrieving Captions from Excel Sheet Windows 10 Macro for Inserting Multiple Photos into Word but retrieving Captions from Excel Sheet Office 2019
Novice
Macro for Inserting Multiple Photos into Word but retrieving Captions from Excel Sheet
 
Join Date: Jun 2021
Posts: 1
macaronipasta is on a distinguished road
Default Macro for Inserting Multiple Photos into Word but retrieving Captions from Excel Sheet

Im using macro made by user macropod in this topic https://www.msofficeforums.com/drawi...ument-all.html

but when I want use it there is error Run-time error '5251': This is not a valid action for the end of a row. When I press Debug it refers to line
Code:
.Characters.Last.Previous = vbNullString
in macro. I can't find the solution. Can you help me?
Reply With Quote
  #2  
Old 06-24-2021, 08:19 PM
gmayor's Avatar
gmayor gmayor is offline Macro for Inserting Multiple Photos into Word but retrieving Captions from Excel Sheet Windows 10 Macro for Inserting Multiple Photos into Word but retrieving Captions from Excel Sheet Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,106
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Or you could use Photo Gallery Add-in Template
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 06-27-2021, 06:28 PM
macropod's Avatar
macropod macropod is offline Macro for Inserting Multiple Photos into Word but retrieving Captions from Excel Sheet Windows 10 Macro for Inserting Multiple Photos into Word but retrieving Captions from Excel Sheet Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Your thread title refers to 'retrieving Captions from Excel Sheet', but nothing in the code refers to Excel. Moreover, the original code has been used thousands of times without difficulty. How are you using it?
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
#addpic.#pictures



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro for Inserting Multiple Photos into Word but retrieving Captions from Excel Sheet Macro for Inserting Multiple Photos from Excel List into Word henhelm Word VBA 15 02-07-2023 05:35 PM
Macro to access info from Excel spreadsheet and populate Word doc with text, photos, and captions henhelm Word VBA 4 06-27-2019 08:49 PM
Macro for Inserting Multiple Photos into Word but retrieving Captions from Excel Sheet Inserting multiple photos at a specific size Mr M Drawing and Graphics 2 06-20-2018 08:07 PM
Macro for Inserting Multiple Photos into Word but retrieving Captions from Excel Sheet Excel Macro: Multiple Search and Post in Excel Sheet andxie Excel Programming 10 05-31-2018 05:21 PM
Macro for Inserting Multiple Photos into Word but retrieving Captions from Excel Sheet Inserting / formatting multiple photos into Word doc. Jeremiahts Drawing and Graphics 1 03-23-2011 07:33 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:05 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft