Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello.
I have a graphical object on a sheet and it is selected. I need to move this object so that the top left corner of the object is EXACTLY on the top left corner of cell "B2". My code so far: Dim objShape As Shape Set objShape = ActiveSheet.Shapes(strSnapShotName) objShape.????? Please fill in what I need to do...thanks much in advance. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This worked for me:
Option Explicit Sub testme01() Dim objShape As Shape With ActiveSheet Set objShape = .Shapes(1) 'changed for testing! With .Range("b2") objShape.Top = .Top objShape.Left = .Left End With End With End Sub quartz wrote: Hello. I have a graphical object on a sheet and it is selected. I need to move this object so that the top left corner of the object is EXACTLY on the top left corner of cell "B2". My code so far: Dim objShape As Shape Set objShape = ActiveSheet.Shapes(strSnapShotName) objShape.????? Please fill in what I need to do...thanks much in advance. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
reposition user form | New Users to Excel | |||
reposition windows | Excel Discussion (Misc queries) | |||
Excel2007 -- Precisely set plot area size? | Charts and Charting in Excel | |||
Trying to fit and position images precisely | Excel Discussion (Misc queries) | |||
Calculate years between two dates more precisely | Excel Programming |