Macro - pictures to excel acc to name
Solved/Closed
Northimn
Posts
2
Registration date
Friday August 5, 2016
Status
Member
Last seen
August 10, 2016
-
Aug 5, 2016 at 07:58 AM
Northimn Posts 2 Registration date Friday August 5, 2016 Status Member Last seen August 10, 2016 - Aug 10, 2016 at 09:20 AM
Northimn Posts 2 Registration date Friday August 5, 2016 Status Member Last seen August 10, 2016 - Aug 10, 2016 at 09:20 AM
Related:
- Macro - pictures to excel acc to name
- How to change author name in excel - Guide
- Number to words in excel - Guide
- How to take screenshot in excel - Guide
- Excel marksheet - Guide
- Excel apk for pc - Download - Spreadsheets
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Aug 9, 2016 at 10:57 AM
Aug 9, 2016 at 10:57 AM
Hi Northimn,
In the code below, the picture size will match the row height. Try it:
Best regards,
Trowa
In the code below, the picture size will match the row height. Try it:
Sub RunMe() Dim myPict As Picture For Each cell In Range("A2:A" & Range("A" & Rows.Count).End(xlUp).Row) With Cells(cell.Row, "K") Set myPict = .Parent.Pictures.Insert("C:\Images\" & cell.Value & ".jpg") myPict.Top = .Top myPict.Width = .Width myPict.Height = .Height myPict.Left = .Left myPict.Placement = xlMoveAndSize End With Next cell End Sub
Best regards,
Trowa
Aug 10, 2016 at 09:20 AM
thank you for the time to answer me! As soon as I get to the excell, I will test it!
Regards,
R.