Hi,
I am using the below macro to insert images into a group of merged cells, it works perfectly however i would also like it to automatically scale and centre the image to fit in the merged cells... Any ideas ?
Thanks in advance Alex
I am using the below macro to insert images into a group of merged cells, it works perfectly however i would also like it to automatically scale and centre the image to fit in the merged cells... Any ideas ?
Thanks in advance Alex
Code:
Sub InsertImageBox1()
Dim FName$
With Application.FileDialog(msoFileDialogOpen)
.InitialFileName = [a67] ' path from cell
.Filters.Clear
.Filters.Add "JPEGS", "*.jpg; *.jpeg"
.Filters.Add "GIF", "*.GIF"
.Filters.Add "Bitmaps", "*.bmp"
.AllowMultiSelect = 0
If .Show = True Then
FName = .SelectedItems(1)
Else
MsgBox "Operation Cancelled"
Exit Sub
End If
End With
ActiveSheet.Pictures.Insert (FName)
End Sub