對(duì)于不規(guī)則單元格,選擇性粘貼通常會(huì)破壞格式累提,
比如這樣,就會(huì)很麻煩磁浇,用vba即可解決~
1斋陪,alt+F11 打開vba
2,sheet右鍵插入模塊
3置吓,輸入代碼
Sub save_value()
ActiveSheet.UsedRange.Formula = ActiveSheet.UsedRange.Value
ActiveSheet.UsedRange.Interior.Pattern = xlNone
End Sub
4无虚,運(yùn)行可實(shí)現(xiàn)去除公式保留數(shù)值和去除單元格顏色