My workbook reflect exact what I want. Simple as bonjour.
Photos's in a folder, Names in column M (with or without extention, doesn't matter I can change that)and photo's should be added in column N
I don't think you can figure it out yourself,otherwise it is a small matter of posting a small...
I tryed in the immedate window, when i saved the file code and window was gone.
Worksheet test is my bad, it has to be Sheet 1
Because nothing works and I don't get anywere I am getting nervous..
In the real file I don't make these mistakes naming the sheet wrong
No go.:(
The names of the pictures are in Column M with extension like chandoo.jpg
this is the code
Sub belle()
Dim Cell As Range, Path As String
Path = "C:\test\"
With Sheets("test")
For Each Cell In .Range("M2:M" & .Cells(.Rows.Count, 13).End(xlUp).Row)
For Each pic In Array(".gif"...
Now I have this.
For Each Cell In .Range("M2:M" & .Cells(.Rows.Count, 13).End(xlUp).Row)
For Each pic In Array(".gif", ".jpg")
If Dir(Path & Cell & pic) <> "" Then
With .Pictures.Insert(Path & Cell & pic)
.ShapeRange.LockAspectRatio = msoFalse...
For each is not the problem, how to do it with the pics instead of cells,I don't want to use the blocks for every extention.
An example of a for each in a function doen't help at aal.
This is the complete code.
I want to expand this code so I can use different extensions.
Jpg, Gif,Png
Any body an idee?
Sub belle()
Dim Cell As Range, Path As String
Path = "C:\Test\"
With Sheets("Sheet1")
For Each Cell In .Range("M2:M" & .Cells(.Rows.Count, 13).End(xlUp).Row)
If...