LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 89
Default image insertion height problem

So far this post has gotten no replies on mrexcel so I post here as well
hoping for some help


The code below sets the range where i want the image to reside and correctly
inserts the image to the range a1:f1 except the height. The image bottom edge
is down at row 4 instead of the bottom of row 1 which i have set the pixel
height before insertion.

Any idea how to set the height properly so it only covers the a1:f1 range?




Sub Test()
'***Change to suit
Const PicName As String = "X:\slksdffsldkfslhf .jpg"
Dim Pic As Object
Set Pic = ActiveSheet.Pictures.Insert(PicName)
ActiveSheet.Select
Rows("1:1").RowHeight = 69
Range("A1:F1").Select
Application.CutCopyMode = False
Selection.Merge True
With Pic
..Top = Range("A1").Top
..Left = Range("A1").Left
..Height = Range("A1").RowHeight 'need to fix this
..Width = Range("A1:F1").Width
End With
End Sub
__________________
Thomas Donino
BATL Management LP
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
image insertion thomas donino Excel Programming 1 September 2nd 09 12:01 PM
Row Insertion Problem robot[_3_] New Users to Excel 2 February 7th 09 04:38 AM
Is there any way to search image of my local drive with Image name or Image Title, Description [email protected] Excel Programming 3 August 3rd 07 01:44 PM
Row height problem [email protected] Excel Discussion (Misc queries) 1 December 19th 06 04:43 AM
Conditional Row insertion problem xenikos Excel Programming 2 July 13th 04 04:34 PM


All times are GMT +1. The time now is 09:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"