Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub AA_InsertPicture()
Dim rng As Range, pic As Picture Set rng = Range("B2").MergeArea rng.Select Set pic = ActiveSheet.Pictures.Insert( _ "C:\Documents and Settings\OgilvyTW\" & _ "My Documents\My Pictures\Sample.jpg") pic.Top = rng.Top pic.Left = rng.Left pic.Width = rng.Width pic.Height = rng.Height End Sub worked for me. -- Regards, Tom Ogilvy "Sven Ghyselinck" wrote: I want to insert a picture (no matter what size) into merged celles. So if the picture in imported, it must be resized automatic to fit into the merged celles. Thanks for the help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Resizing merged / wrapped cells. | Excel Discussion (Misc queries) | |||
resizing a picture to fit a single cell HELP | Excel Discussion (Misc queries) | |||
Autofill cels based on two dates in adjacent cels | Excel Worksheet Functions | |||
Resizing Picture | Excel Programming | |||
Picture resizing | Excel Programming |