Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Paste - Positioning of Pictures 1

Status
Not open for further replies.

ajcarr

Technical User
Oct 1, 2002
69
GB
I have an application which needs to insert pictures at particular positions in an Excel workbook.(These are organisation logo's). However, I can't find out how to control the exact positioning within a spreadsheet. Selecting a cell and pasting puts it roughly in the right area and I know I can move it by 'IncrementLeft' and IncrementTop but how do you control the initial positioning?

Incidentally, I've noticed that macro recorder in Excel 2007 doesn't record object movements to generate the 'Increment' movements while that in Excel 2003 does.
 


Hi,

Relative to a cell...
Code:
with TheRangeObject.TopLeftCell
   YourPicObject.top = .top
   YourPicObject.left = .left
end with

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks Skip. I spent hours searching through the help screens trying to find this. So simple when you know how.

Allan
 


Glad to share, Allan.

Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top