SerenityNetworks
Board Regular
- Joined
- Aug 13, 2009
- Messages
- 131
- Office Version
- 365
- Platform
- Windows
I'm using the following code to display an image in a workbook.
I would like to be able to zoom in on the image. I am not looking to simply make the image bigger; that I can do. I can control contrast and brightness for all images displayed, rotate a single image, and more, but I am not seeing how I can zoom in on a single image.
Is there a way?
Thanks in advance,
Andrew
Code:
Sub Image21()
On Error GoTo ProcExit21
Dim objPicture As Picture
With Sheets("Working").Cells(1, 1) ' Picture displays in cell from row, column
Set objPicture = .Parent.Pictures.Insert(Sheets("Working").Cells(2, gvarImgColumn + 20).Value) ' Picture path row, column
objPicture.Width = Sheets("Parameters").Cells(83, 2).Value
'objPicture.Height = Sheets("Parameters").Cells(84, 2).Value
objPicture.Top = Sheets("Parameters").Cells(85, 2).Value
objPicture.Left = Sheets("Parameters").Cells(86, 2).Value
objPicture.Border.Color = RGB(69, 107, 43)
objPicture.Border.Weight = xlThick
objPicture.Border.LineStyle = xlContinuous
End With
ProcExit21:
End Sub
I would like to be able to zoom in on the image. I am not looking to simply make the image bigger; that I can do. I can control contrast and brightness for all images displayed, rotate a single image, and more, but I am not seeing how I can zoom in on a single image.
Is there a way?
Thanks in advance,
Andrew
Last edited: