Picture directory
Closed
SL_ice
Posts
1
Registration date
Tuesday September 11, 2018
Status
Member
Last seen
September 11, 2018
-
Sep 11, 2018 at 11:05 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Sep 11, 2018 at 11:47 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Sep 11, 2018 at 11:47 AM
Related:
- Picture directory
- Convert picture to shape powerpoint - Guide
- Microsoft picture manager download - Download - Image viewing and management
- How to change download directory opera gx - Guide
- Start steam in big picture mode - Guide
- Does instagram notify when you change your profile picture - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Updated on Sep 11, 2018 at 11:49 AM
Updated on Sep 11, 2018 at 11:49 AM
Hi SL_ice,
You start that you want to pull a picture from the ID number in column C and you end with that you want to pull in a picture from the name in column A. I went with the latter.
Check out the code below:
Change code line 7 to match your picture directory.
Also check code line 15 to see if it matches your picture extention (.jpg).
Is this to your liking?
Best regards,
Trowa
You start that you want to pull a picture from the ID number in column C and you end with that you want to pull in a picture from the name in column A. I went with the latter.
Check out the code below:
Sub RunMe() Dim xRow, xCol As Integer Dim PictPath As String xRow = 1 xCol = 1 PictPath = "C:\MyPictures\" Sheets("Housing Roster").Select For Each cell In Range("A3:A130") With Sheets("Picture Directory Test") .Select .Cells(xRow, xCol).Select .Pictures.Insert(PictPath & cell.Value & ".jpg").Select End With If xCol = 10 Then xCol = 1 xRow = xRow + 5 Else xCol = xCol + 3 End If Next cell End Sub
Change code line 7 to match your picture directory.
Also check code line 15 to see if it matches your picture extention (.jpg).
Is this to your liking?
Best regards,
Trowa