Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Is it possible to find out if a selected shape is just a line or a shape (i.e. has a line color and fill color) Thanks! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sanjay,
I think you can check the Type property of the shape. If it's msoLine, then it's a line. Sub test() Dim shp As Shape For Each shp In ActiveSheet.Shapes If shp.Type = msoLine Then 'this is a line Debug.Print shp.Name & " is a line." End If Next shp End Sub -- Hope that helps. Vergel Adriano "Sanjay" wrote: Hi, Is it possible to find out if a selected shape is just a line or a shape (i.e. has a line color and fill color) Thanks! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Vergel !
"Vergel Adriano" wrote in message ... Sanjay, I think you can check the Type property of the shape. If it's msoLine, then it's a line. Sub test() Dim shp As Shape For Each shp In ActiveSheet.Shapes If shp.Type = msoLine Then 'this is a line Debug.Print shp.Name & " is a line." End If Next shp End Sub -- Hope that helps. Vergel Adriano "Sanjay" wrote: Hi, Is it possible to find out if a selected shape is just a line or a shape (i.e. has a line color and fill color) Thanks! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Positioning a drawn line shape on a chart | Charts and Charting in Excel | |||
my curser changed from arrow shape to a cross shape???? | New Users to Excel | |||
Insert a line or shape in a table | Charts and Charting in Excel | |||
Deleting a shape and the cell contents the shape is in. | Excel Programming | |||
Deleting a shape and the cell contents the shape is in. | Excel Programming |