Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 09-22-2022, 06:58 AM
macropod's Avatar
macropod macropod is offline Macro for Inserting Multiple Photos from Excel List into Word Windows 10 Macro for Inserting Multiple Photos from Excel List into Word Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

It seems to me the problem is that you have specified a row height that is way too large. That said, you could change:
.Cells.VerticalAlignment = wdCellAlignVerticalCenter
to:


.Cells.VerticalAlignment = wdCellAlignVerticalBottom
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #2  
Old 02-06-2023, 04:42 AM
jan.w jan.w is offline Macro for Inserting Multiple Photos from Excel List into Word Windows 10 Macro for Inserting Multiple Photos from Excel List into Word Office 2021
Novice
 
Join Date: Feb 2023
Posts: 2
jan.w is on a distinguished road
Default

Hello, I've a workbook "Inspections.xlsx" with worksheet named "Observations" saved in C:\Users\ABC\Documents\. Photos are also saved at the same folder. I've changed the code like this

Code:
StrWkBkNm = "C:\Users\ABC\Documents\Inspections.xlsx"
StrDocPath = ActiveDocument.Path
StrRpt = Right(StrDocPath, Len(StrDocPath) - InStrRev(StrDocPath, "\"))
StrWkSht = "Observations"
StrPicPath = "C:\Users\ABC\Documents\"
When I compile the code, I got a "Compile error: Method or data member not found", pointing to .Name of this line
Code:
If .Name = "TblPic" Then bFnd = False: Exit For
Please help.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro for Inserting Multiple Photos from Excel List into Word Macro for Inserting Multiple Photos into Word but retrieving Captions from Excel Sheet macaronipasta Word VBA 2 06-27-2021 06:28 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 from Excel List into Word Inserting multiple photos at a specific size Mr M Drawing and Graphics 2 06-20-2018 08:07 PM
Macro for Inserting Multiple Photos from Excel List into Word Inserting and formatting photos in word 2013 tha_slughy Word VBA 5 07-13-2014 04:39 PM
Macro for Inserting Multiple Photos from Excel List into Word 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 07:26 AM.


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