Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Dus Dus is offline
external usenet poster
 
Posts: 1
Default Inserting pictures/autoshapes to certain cells ?

Hello,
I need to add some pictures or autoshapes to my spreadsheet.
When recording a macro it carries out the folowing:
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 97.5, 53.25, 286.5,
74.25).Select

I'd like to know what kind of unites are used. I need to place those
graphical objects
on certain cells .... so for exapmle I need to find out right numers to be
used to place any object/picture on cell C3.

It seems that selecting desired cell has nothing to do with inseting objects
since those coordinates (in strange units) are used.
Any idea?

Thak you
Dusan



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Inserting pictures/autoshapes to certain cells ?

Cells can contain formulae or values. Shapes and pictures exist in the
Drawing Layer "above" the cells.

You can position them using cell references:

Dim sh As Shape
With Range("C3")
Set sh = .Parent.Shapes.AddShape( _
Type:=msoShapeRectangle, _
Left:=.Left, _
Top:=.Top, _
Width:=.Width, _
Height:=.Height)
End With
sh.Placement = xlMoveAndSize



In article ,
"Dus" wrote:

I need to add some pictures or autoshapes to my spreadsheet.
When recording a macro it carries out the folowing:
ActiveSheet.Shapes.AddShape(msoShapeRectangle, 97.5, 53.25, 286.5,
74.25).Select

I'd like to know what kind of unites are used. I need to place those
graphical objects
on certain cells .... so for exapmle I need to find out right numers to be
used to place any object/picture on cell C3.

It seems that selecting desired cell has nothing to do with inseting objects
since those coordinates (in strange units) are used.

Reply
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
Inserting Pictures cjohnson Excel Discussion (Misc queries) 2 April 2nd 08 07:00 PM
Inserting Pictures DamienO Excel Discussion (Misc queries) 2 October 31st 07 12:40 PM
Inserting Pictures Matthew[_2_] Excel Discussion (Misc queries) 3 July 14th 07 10:23 AM
Inserting pictures into worksheets Jose C Excel Discussion (Misc queries) 0 December 7th 06 04:06 AM
inserting pictures Denny[_2_] Excel Programming 5 November 16th 04 01:49 AM


All times are GMT +1. The time now is 11:02 AM.

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"