【发布时间】:2015-08-26 22:38:54
【问题描述】:
我对宏还是很陌生,我有一些代码需要在每次更新、更改或其他任何事情时在工作表上运行。
这是我需要运行的代码:我该怎么做?
Sub UnMergeFill()
Dim cell As Range, joinedCells As Range
For Each cell In ThisWorkbook.ActiveSheet.UsedRange
If cell.MergeCells Then
Set joinedCells = cell.MergeArea
cell.MergeCells = False
joinedCells.Value = cell.Value
End If
Next
End Sub
【问题讨论】: