Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
When I use this code on a worksheet that doesn't contain
clip art to delete, I get the error message "This operation will cause some merged cells to unmerge. Do you want to continue". How can I use this code to delete unwanted clip art objects without unmerging any cells? Set myDocument = Worksheets(1) myDocument.Shapes.SelectAll Selection.Delete |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
one way:
Dim myDocument As Worksheet Set myDocument = Worksheets(1) With myDocument.Pictures If .Count 0 Then .Delete End With In article , wrote: When I use this code on a worksheet that doesn't contain clip art to delete, I get the error message "This operation will cause some merged cells to unmerge. Do you want to continue". How can I use this code to delete unwanted clip art objects without unmerging any cells? Set myDocument = Worksheets(1) myDocument.Shapes.SelectAll Selection.Delete |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks!...Works good!
-----Original Message----- one way: Dim myDocument As Worksheet Set myDocument = Worksheets(1) With myDocument.Pictures If .Count 0 Then .Delete End With In article , wrote: When I use this code on a worksheet that doesn't contain clip art to delete, I get the error message "This operation will cause some merged cells to unmerge. Do you want to continue". How can I use this code to delete unwanted clip art objects without unmerging any cells? Set myDocument = Worksheets(1) myDocument.Shapes.SelectAll Selection.Delete . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
removing objects..! | Excel Discussion (Misc queries) | |||
Unmerging A Named Range | Excel Discussion (Misc queries) | |||
import csv data into a range with merged cells without unmerging | Excel Discussion (Misc queries) | |||
unmerging cell and filling it | Excel Worksheet Functions | |||
Merging and unmerging cells | Excel Worksheet Functions |