Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Good morning,
Please help with my code below. Basically, my code will remove the shapes in the cells selected (instead of all the shapes in the active worksheet) of the active worksheet, and it is not work. For example, if I select cells A1, B1, and C5:G10 and when I run the macro, the macro will only remove the shapes in those cells. Please note the cells selected will be done by users and may not be the same as referenced above. Thanks. Dim cMarks As Shape Dim sCells as Range Dim cCount as Integer sCells.Select For Each sCells In ActiveSheet For Each cMarks In sCells.Shapes If cMarks.Type = 13 Then cCount = cCount + 1 cMarks.Delete End If Next cMarks Next sCells MsgBox "You have removed " & cCount & " check marks in highlighted cells '" & sCells.Name & "' of the Worksheet '" & ActiveSheet.Name & "'." |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
split post code (zip code) out of cell that includes full address | Excel Discussion (Misc queries) | |||
Shorten code to apply to all sheets except a few, instead of individually naming them, and later adding to code. | Excel Programming | |||
Protect Sheet with code, but then code will not Paste error. How do i get around this. Please read for explainations.... | Excel Programming | |||
Modification in the CODE to HIDE rows and columns that start with ZERO (code given) | Excel Programming | |||
Excel code convert to Access code - Concat & eliminate duplicates | Excel Programming |