I would like to insert multiple pictures onto a worksheet, there will be a max of 6 pictures starting at Cell A1 and then in intervals of 19 Rows. So A1, A20, A39 etc.
Just having a bit of difficulty with Selecting multiple files at once and placing them in the relevant cells. This is the code I am using
Once its all inserted I want to PDF and then clear the tab but I think I have that part sorted,
thanks in advance
Just having a bit of difficulty with Selecting multiple files at once and placing them in the relevant cells. This is the code I am using
VBA Code:
Sub GetPic()
Dim fNameAndPath As Variant
Dim img As Picture
Sheets("Sign Off").Select
fNameAndPath = Application.GetOpenFilename(Title:="Select Picture To Be Imported")
If fNameAndPath = False Then Exit Sub
Set img = Sheets("Photos").Pictures.Insert(fNameAndPath)
With img
Sheets("Photos").Select
.Left = Range("A1").Left
.Top = Range("A1").Top
.Width = Range("A1:D1").Width
.Height = Range("A1:D18").Height
.Placement = 1
.PrintObject = True
End With
End Sub
Once its all inserted I want to PDF and then clear the tab but I think I have that part sorted,
thanks in advance