Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-03-2025, 03:59 AM
macropod's Avatar
macropod macropod is offline Add Multiple Pics & Captions to a Document Windows 10 Add Multiple Pics & Captions to a Document Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,366
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


Simply delete your existing FormatRows sub, then copy & paste the FormatRows sub from post #36 into your existing code module.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 06-03-2025, 04:15 AM
victorybadges victorybadges is offline Add Multiple Pics & Captions to a Document Windows 10 Add Multiple Pics & Captions to a Document Office 2013
Advanced Beginner
Add Multiple Pics & Captions to a Document
 
Join Date: Dec 2020
Posts: 39
victorybadges is on a distinguished road
Default

it worked, many thanks Paul
appreciate your help
have a good day
Reply With Quote
  #3  
Old 06-03-2025, 06:13 AM
victorybadges victorybadges is offline Add Multiple Pics & Captions to a Document Windows 10 Add Multiple Pics & Captions to a Document Office 2013
Advanced Beginner
Add Multiple Pics & Captions to a Document
 
Join Date: Dec 2020
Posts: 39
victorybadges is on a distinguished road
Default

sorry, just double checked, the macro is replacing spaces in the file name for dots in the caption
Reply With Quote
  #4  
Old 06-03-2025, 03:53 PM
victorybadges victorybadges is offline Add Multiple Pics & Captions to a Document Windows 10 Add Multiple Pics & Captions to a Document Office 2013
Advanced Beginner
Add Multiple Pics & Captions to a Document
 
Join Date: Dec 2020
Posts: 39
victorybadges is on a distinguished road
Default

following your advice I replaced the periods with dashes in the file name and this did not change anything, spaces are still shown as periods in the caption
Reply With Quote
  #5  
Old 06-03-2025, 04:16 PM
macropod's Avatar
macropod macropod is offline Add Multiple Pics & Captions to a Document Windows 10 Add Multiple Pics & Captions to a Document Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,366
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

The macro can't do that, since there's no code in it to do so. I suspect you either didn't change all the filenames or you ran the macro against the wrong set of files.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 06-03-2025, 04:44 PM
victorybadges victorybadges is offline Add Multiple Pics & Captions to a Document Windows 10 Add Multiple Pics & Captions to a Document Office 2013
Advanced Beginner
Add Multiple Pics & Captions to a Document
 
Join Date: Dec 2020
Posts: 39
victorybadges is on a distinguished road
Default

my mistake, ran it again and its perfect
I had paragraph marks showing which confused me
many thanks
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Multiple Pics & Captions to a Document Macro for Inserting Multiple Photos from Excel List into Word henhelm Word VBA 15 02-07-2023 05:35 PM
Add Multiple Pics & Captions to a Document Macro for Inserting Multiple Photos into Word but retrieving Captions from Excel Sheet macaronipasta Word VBA 2 06-27-2021 06:28 PM
Add Multiple Pics & Captions to a Document I need a macro to automatically insert 4 pics per page in a word document with "Photograph No 1, 2," NewbieLearning Word VBA 15 11-14-2017 05:03 AM
Add Multiple Pics & Captions to a Document Captions: Changing captions in Appendix update all captions carnestw Word 3 10-27-2015 12:34 PM
How do I type on multiple pics? TimHudson Drawing and Graphics 0 07-28-2011 10:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:09 PM.


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