ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Fixing Image In A Cell (https://www.excelbanter.com/excel-discussion-misc-queries/254958-fixing-image-cell.html)

Faraz A. Qureshi

Fixing Image In A Cell
 
Any way to insert a picture in a cell, fitted so as to set the row
height/column width accordingly and making the same of the exact size?
--
Thanx in advance,
Best Regards,

Faraz

Jacob Skaria

Fixing Image In A Cell
 
Hi Faraz

Pictures reside in the different layer above the cells. You can move and
resize them to be on top of the cell; and format the picture to move and
resize with cells .

Dim myPic As Object
Set myPic = ActiveSheet.Pictures.Insert("C:\untitled.bmp")
With myPic
.Top = Range("B9").Top
.Left = Range("B9").Left
.Height = Range("B9").Height
.Width = Range("B9").Width
End With


--
Jacob


"Faraz A. Qureshi" wrote:

Any way to insert a picture in a cell, fitted so as to set the row
height/column width accordingly and making the same of the exact size?
--
Thanx in advance,
Best Regards,

Faraz



All times are GMT +1. The time now is 06:05 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com