Put a loop for the code which insert pictures
Closed
hany
-
30 Jul 2011 à 09:50
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 30 Jul 2011 à 16:50
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 30 Jul 2011 à 16:50
Related:
- Put a loop for the code which insert pictures
- Where is the insert key on a laptop - Guide
- Fruity loop for mac - Download - Musical production
- Cs 1.6 code - Guide
- Discord update failed loop - Guide
- What is the unlock code for ninja up - Nokia Forum
1 response
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
30 Jul 2011 à 16:50
30 Jul 2011 à 16:50
You can try some thing like this
Sub Macro1()
Dim lStartAt As Long
Dim lEndAt As Long
Dim iCount As Long
Dim lCtr As Long
lStartAt = 4
lEndAt = 22
For lCtr = lStartAt To lEndAt
iCount = iCount + 1
Range ("B" & lCtr) 'need to have the loop to B(i+18)
ActiveSheet.Pictures.Insert("C:\Users\user\Pictures\Acceptance\" & iCount & " (" & iCount & ").jpg").Select 'need to have loop for 1 (j+1).jpg
Selection.ShapeRange.Height = 184.32
Selecion.Cut
ActiveSheet.Pictures.Paste.Select
Next
End Sub