Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi I am new to programming and I was just wondering how to make a .jp
image the same size as a cell? I know that you can not insert picture into the acctual cell i just want it the same size. Also i there a way to use the compress image feature in excel through VBA? Thanks in advance : -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
the basic approach is
Sub SizePicture() Set shp = ActiveSheet.Shapes(1) With Cells(5, 4) shp.Top = .Top shp.Left = .Left shp.Width = .Width shp.Height = .Height End With End Sub You may have to look at the aspect ratio settings. -- Regards, Tom Ogilvy "Nater " wrote in message ... Hi I am new to programming and I was just wondering how to make a .jpg image the same size as a cell? I know that you can not insert a picture into the acctual cell i just want it the same size. Also is there a way to use the compress image feature in excel through VBA? Thanks in advance :) --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks with a bit of tweaking i got what i wanted. Still cant figur
out the compression though -- Message posted from http://www.ExcelForum.com |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I move and size a picture with a cell but keep the aspect r | Excel Discussion (Misc queries) | |||
Set the size of a background picture in Excel | Excel Discussion (Misc queries) | |||
How to insert picture and automatically size to cell? | Excel Worksheet Functions | |||
How to insert a picture that automatically sizes to size of cell? | Excel Worksheet Functions | |||
jpeg picture always the same size | Excel Worksheet Functions |