Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA script to delete content in merged cells.
Is there a VBA script to delete content in merged cells?
|
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA script to delete content in merged cells.
See one way at your previous thread.
Calle wrote: Is there a VBA script to delete content in merged cells? -- Dave Peterson |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
VBA script to delete content in merged cells.
Hi Calle,
See my response in your earlier thread. However, more generally: '============= Public Sub Tester() Dim rng As Range Dim rCell As Range Set rng = Range("A1:A10") For Each rCell In rng.Cells With rCell If .MergeCells Then .MergeArea.ClearContents Else .ClearContents End If End With Next rCell End Sub '<<============= --- Regards, Norman "Calle" wrote in message ... Is there a VBA script to delete content in merged cells? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
display content of merged cells | Excel Discussion (Misc queries) | |||
Query content of merged cells | Excel Worksheet Functions | |||
How to delete the content of Excel cells from VBS script? | Excel Discussion (Misc queries) | |||
How do I delete only the content of cells that are NOT protected? | Excel Discussion (Misc queries) | |||
Script doesn't work when cells are merged. | Excel Discussion (Misc queries) |