Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
shape runtime error 438 excel 2007
I couldn't get the Name of the parent of a shape. In my codes I often use the parent.name expression to find out In which sheet a shape is positioned. e.g. Sub mytest() Dim curshape As Shape With ActiveSheet Set curshape = .Shapes.AddTextbox(msoTextOrientationHorizontal, 12, 12, 12, 12) Debug.Print curshape.Parent.Name End With End Sub This works in excel 2000 and 2003 without problems. Is this a bug of excel 2007 or is there another solution to get such info? THX |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
shape runtime error 438 excel 2007
I've had problems too with my code that manipulates shapes. I know that MS
has done a lot of work getting shapes to be more consistent across the Office 2007 suite and that's created a few problems for us. I found this code works in Excel 2003 and 2007: Debug.Print curshape.DrawingObject.Parent.Name -- Jim "wolmFromAustria" wrote in message ... I couldn't get the Name of the parent of a shape. In my codes I often use the parent.name expression to find out In which sheet a shape is positioned. e.g. Sub mytest() Dim curshape As Shape With ActiveSheet Set curshape = .Shapes.AddTextbox(msoTextOrientationHorizontal, 12, 12, 12, 12) Debug.Print curshape.Parent.Name End With End Sub This works in excel 2000 and 2003 without problems. Is this a bug of excel 2007 or is there another solution to get such info? THX |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
shape runtime error 438 excel 2007
Thanks Jim,
yes that was where I am searching for. wope "Jim Rech" wrote: I've had problems too with my code that manipulates shapes. I know that MS has done a lot of work getting shapes to be more consistent across the Office 2007 suite and that's created a few problems for us. I found this code works in Excel 2003 and 2007: Debug.Print curshape.DrawingObject.Parent.Name -- Jim "wolmFromAustria" wrote in message ... I couldn't get the Name of the parent of a shape. In my codes I often use the parent.name expression to find out In which sheet a shape is positioned. e.g. Sub mytest() Dim curshape As Shape With ActiveSheet Set curshape = .Shapes.AddTextbox(msoTextOrientationHorizontal, 12, 12, 12, 12) Debug.Print curshape.Parent.Name End With End Sub This works in excel 2000 and 2003 without problems. Is this a bug of excel 2007 or is there another solution to get such info? THX |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to add pattern to the shape styles for charts in Excel 2007 | Charts and Charting in Excel | |||
resize line or arrow shape horizontally in Excel 2007 | Excel Discussion (Misc queries) | |||
runtime error r6025 on Excel 2007 | Excel Discussion (Misc queries) | |||
Excel 2003 Macro Error - Runtime error 1004 | Excel Discussion (Misc queries) | |||
Creating Shape at runtime | Excel Programming |