Hi,
I have a macro that imports image, and has worked out great until now. The problem now is that I need to rotate the picture 90#, and after it has been rotated I need it to "start" in a certain cell (B51).
I hope someone can help me to place the image in right cell
I have a macro that imports image, and has worked out great until now. The problem now is that I need to rotate the picture 90#, and after it has been rotated I need it to "start" in a certain cell (B51).
I hope someone can help me to place the image in right cell
Code:
Sub InsertPicture()
Dim myPicture
Dim MyOpj As Object
myPicture = Application.GetOpenFilename _
("Bilder (*.gif; *.jpg; *.bmp; *.tif),*.gif; *.jpg; *.bmp; *.tif", _
, "Velg bilde som skal settes inn")
If VarType(myPicture) = vbBoolean Then Exit Sub
If myPicture = "False" Then Exit Sub
Set MyObj = Ark1.Pictures.Insert(myPicture)
With MyObj
With .ShapeRange
.LockAspectRatio = msoFalse
.IncrementRotation 90#
.Height = 350
.Width = 500
.Top = Ark1.Range("B51").Top
.Left = Ark1.Range("B51").Left
End With
.Placement = xlMoveAndSize
End With
Set MyObj = Nothing
End Sub