alternatively, this method will allow you to inserts a picture at the top left position of a TargetCell
http://www.exceltip.com/st/Insert_pictures_using_VBA_in_Microsoft_Excel/486.html
thanks guys. i have tried re-developing following to insert picture into sheet with designated cell. However, could I have it done automatically instead of insert the path and pick the picture one by one? any one could help?
<TABLE border=0 cellSpacing=0 cellPadding=0 width=72><TBODY><TR style="HEIGHT: 13.5pt" height=18><TD style="WIDTH: 54pt; HEIGHT: 13.5pt">Sub AutoInsert Photo ()</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = "ai,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "bmp,bmz"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "cdr,cgm,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "dib,dwg,dxf,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "emf,emz,eps,exf,exif,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "fpx,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "gfa,gif,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "hdr,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "ico,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "jfif,jpe,jpeg,jpg,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "pcd,pct,pcx,pcz,pict,png,psd,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "raw,rle,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "svg,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "tga,tif,tiff,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "ufo,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "wdp,wmf,wmz,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> K = InputBox("Insert Row number,1=insert", "Insert Row number", 1)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If K = "" Then Exit Sub</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Dim Rng As Range: Set Rng = ActiveCell</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> OpenFile = Application.GetOpenFilename("Picture Files(*.*),*.*", , "Get Picture from here!")</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"></TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If OpenFile = False Then</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> myDir = ThisWorkbook.Path & "\"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Else</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> myDir = Left(OpenFile, InStrRev(OpenFile, "\"))</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End If</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Application.ScreenUpdating = False</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Filename = Dir(myDir)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Do While Filename <> ""</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If InStr(Pf, LCase(Right(Filename, Len(Filename) - InStrRev(Filename, ".")))) > 0 Then</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Rng.Cells(1 + n \ K, n Mod K + 1).Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> ActiveCell = Filename 'Left(Filename, InStrRev(Filename, ".") - 1)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> ActiveSheet.Pictures.Insert(myDir & Filename).Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> With Selection</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Placement = xlMoveAndSize</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .ShapeRange.LockAspectRatio = msoFalse</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Top = ActiveCell.Top</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Left = ActiveCell.Left</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Height = ActiveCell.Height</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Width = ActiveCell.Width</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End With</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> n = n + 1</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End If</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Filename = Dir</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Loop</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Application.ScreenUpdating = True</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Rng.Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt">End Sub</TD></TR></TBODY></TABLE><TABLE border=0 cellSpacing=0 cellPadding=0 width=72><TBODY><TR style="HEIGHT: 13.5pt" height=18><TD style="WIDTH: 54pt; HEIGHT: 13.5pt">Sub AutoInsert Photo ()</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = "ai,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "bmp,bmz"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "cdr,cgm,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "dib,dwg,dxf,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "emf,emz,eps,exf,exif,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "fpx,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "gfa,gif,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "hdr,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "ico,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "jfif,jpe,jpeg,jpg,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "pcd,pct,pcx,pcz,pict,png,psd,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "raw,rle,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "svg,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "tga,tif,tiff,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "ufo,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "wdp,wmf,wmz,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> K = InputBox("Insert Row number,1=insert", "Insert Row number", 1)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If K = "" Then Exit Sub</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Dim Rng As Range: Set Rng = ActiveCell</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> OpenFile = Application.GetOpenFilename("Picture Files(*.*),*.*", , "Get Picture from here!")</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"></TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If OpenFile = False Then</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> myDir = ThisWorkbook.Path & "\"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Else</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> myDir = Left(OpenFile, InStrRev(OpenFile, "\"))</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End If</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Application.ScreenUpdating = False</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Filename = Dir(myDir)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Do While Filename <> ""</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If InStr(Pf, LCase(Right(Filename, Len(Filename) - InStrRev(Filename, ".")))) > 0 Then</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Rng.Cells(1 + n \ K, n Mod K + 1).Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> ActiveCell = Filename 'Left(Filename, InStrRev(Filename, ".") - 1)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> ActiveSheet.Pictures.Insert(myDir & Filename).Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> With Selection</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Placement = xlMoveAndSize</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .ShapeRange.LockAspectRatio = msoFalse</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Top = ActiveCell.Top</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Left = ActiveCell.Left</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Height = ActiveCell.Height</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Width = ActiveCell.Width</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End With</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> n = n + 1</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End If</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Filename = Dir</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Loop</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Application.ScreenUpdating = True</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Rng.Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt">End Sub</TD></TR></TBODY></TABLE><TABLE border=0 cellSpacing=0 cellPadding=0 width=72><TBODY><TR style="HEIGHT: 13.5pt" height=18><TD style="WIDTH: 54pt; HEIGHT: 13.5pt">Sub AutoInsert Photo ()</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = "ai,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "bmp,bmz"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "cdr,cgm,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "dib,dwg,dxf,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "emf,emz,eps,exf,exif,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "fpx,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "gfa,gif,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "hdr,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "ico,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "jfif,jpe,jpeg,jpg,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "pcd,pct,pcx,pcz,pict,png,psd,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "raw,rle,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "svg,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "tga,tif,tiff,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "ufo,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "wdp,wmf,wmz,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> K = InputBox("Insert Row number,1=insert", "Insert Row number", 1)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If K = "" Then Exit Sub</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Dim Rng As Range: Set Rng = ActiveCell</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> OpenFile = Application.GetOpenFilename("Picture Files(*.*),*.*", , "Get Picture from here!")</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"></TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If OpenFile = False Then</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> myDir = ThisWorkbook.Path & "\"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Else</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> myDir = Left(OpenFile, InStrRev(OpenFile, "\"))</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End If</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Application.ScreenUpdating = False</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Filename = Dir(myDir)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Do While Filename <> ""</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If InStr(Pf, LCase(Right(Filename, Len(Filename) - InStrRev(Filename, ".")))) > 0 Then</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Rng.Cells(1 + n \ K, n Mod K + 1).Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> ActiveCell = Filename 'Left(Filename, InStrRev(Filename, ".") - 1)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> ActiveSheet.Pictures.Insert(myDir & Filename).Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> With Selection</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Placement = xlMoveAndSize</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .ShapeRange.LockAspectRatio = msoFalse</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Top = ActiveCell.Top</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Left = ActiveCell.Left</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Height = ActiveCell.Height</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Width = ActiveCell.Width</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End With</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> n = n + 1</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End If</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Filename = Dir</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Loop</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Application.ScreenUpdating = True</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Rng.Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt">End Sub</TD></TR></TBODY></TABLE><TABLE border=0 cellSpacing=0 cellPadding=0 width=72><TBODY><TR style="HEIGHT: 13.5pt" height=18><TD style="WIDTH: 54pt; HEIGHT: 13.5pt">Sub AutoInsert Photo ()</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = "ai,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "bmp,bmz"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "cdr,cgm,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "dib,dwg,dxf,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "emf,emz,eps,exf,exif,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "fpx,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "gfa,gif,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "hdr,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "ico,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "jfif,jpe,jpeg,jpg,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "pcd,pct,pcx,pcz,pict,png,psd,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "raw,rle,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "svg,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "tga,tif,tiff,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "ufo,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "wdp,wmf,wmz,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> K = InputBox("Insert Row number,1=insert", "Insert Row number", 1)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If K = "" Then Exit Sub</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Dim Rng As Range: Set Rng = ActiveCell</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> OpenFile = Application.GetOpenFilename("Picture Files(*.*),*.*", , "Get Picture from here!")</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"></TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If OpenFile = False Then</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> myDir = ThisWorkbook.Path & "\"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Else</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> myDir = Left(OpenFile, InStrRev(OpenFile, "\"))</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End If</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Application.ScreenUpdating = False</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Filename = Dir(myDir)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Do While Filename <> ""</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If InStr(Pf, LCase(Right(Filename, Len(Filename) - InStrRev(Filename, ".")))) > 0 Then</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Rng.Cells(1 + n \ K, n Mod K + 1).Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> ActiveCell = Filename 'Left(Filename, InStrRev(Filename, ".") - 1)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> ActiveSheet.Pictures.Insert(myDir & Filename).Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> With Selection</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Placement = xlMoveAndSize</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .ShapeRange.LockAspectRatio = msoFalse</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Top = ActiveCell.Top</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Left = ActiveCell.Left</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Height = ActiveCell.Height</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Width = ActiveCell.Width</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End With</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> n = n + 1</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End If</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Filename = Dir</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Loop</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Application.ScreenUpdating = True</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Rng.Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt">End Sub</TD></TR></TBODY></TABLE><TABLE border=0 cellSpacing=0 cellPadding=0 width=72><COLGROUP><COL style="WIDTH: 54pt" width=72></COLGROUP><TBODY><TR style="HEIGHT: 13.5pt" height=18><TD style="WIDTH: 54pt; HEIGHT: 13.5pt">Sub AutoInsertPhoto()</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = "ai,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "bmp,bmz"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "cdr,cgm,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "dib,dwg,dxf,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "emf,emz,eps,exf,exif,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "fpx,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "gfa,gif,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "hdr,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "ico,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "jfif,jpe,jpeg,jpg,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "pcd,pct,pcx,pcz,pict,png,psd,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "raw,rle,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "svg,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "tga,tif,tiff,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "ufo,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Pf = Pf & "wdp,wmf,wmz,"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> K = InputBox("Insert Row number,1=insert", "Insert Row number", 1)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If K = "" Then Exit Sub</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Dim Rng As Range: Set Rng = ActiveCell</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> OpenFile = Application.GetOpenFilename("Picture Files(*.*),*.*", , "Get Picture from here!")</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"></TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If OpenFile = False Then</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> myDir = ThisWorkbook.Path & "\"</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Else</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> myDir = Left(OpenFile, InStrRev(OpenFile, "\"))</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End If</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Application.ScreenUpdating = False</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Filename = Dir(myDir)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Do While Filename <> ""</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> If InStr(Pf, LCase(Right(Filename, Len(Filename) - InStrRev(Filename, ".")))) > 0 Then</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Rng.Cells(1 + n \ K, n Mod K + 1).Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> ActiveCell = Filename 'Left(Filename, InStrRev(Filename, ".") - 1)</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> </TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> ActiveSheet.Pictures.Insert(myDir & Filename).Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> With Selection</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Placement = xlMoveAndSize</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .ShapeRange.LockAspectRatio = msoFalse</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Top = ActiveCell.Top</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Left = ActiveCell.Left</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Height = ActiveCell.Height</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> .Width = ActiveCell.Width</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End With</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> n = n + 1</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> End If</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Filename = Dir</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Loop</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Application.ScreenUpdating = True</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt"> Rng.Select</TD></TR><TR style="HEIGHT: 13.5pt" height=18><TD style="HEIGHT: 13.5pt">End Sub</TD></TR></TBODY></TABLE>