when I click on any empty cell
better to use double-click
insert everything in one row.
how about in the cell you double-click ?
Try experimenting with this in the sheet module
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target <> "" Then Exit Sub
Dim str As String, i As Long
Dim staticPath As String
Dim images As Variant
staticPath = Range("C14").Value
images = Range(Cells(7, 3), Cells(7, 3).End(xlDown)).Value
For i = 1 To UBound(images)
str = str & staticPath & images(i, 1) & ","
Next i
Target = Left(str, Len(str) - 1)
Cancel = True
End Sub
Bookmarks