【发布时间】:2016-05-16 14:03:26
【问题描述】:
我是 VBA 新手,我知道删除线是一种文本格式,我认为它不能用于空白单元格。
有没有更有效的方法将“-”插入同一行但从“D”到“G”的多列?
请看我的代码:
Set Insert = Sheets("Cash").Cells(CashRowName, "D")
Insert.Value = "-"
Set Insert = Sheets("Cash").Cells(CashRowName, "E")
Insert.Value = "-"
Set Insert = Sheets("Cash").Cells(CashRowName, "F")
Insert.Value = "-"
Set Insert = Sheets("Cash").Cells(CashRowName, "G")
Insert.Value = "-"
【问题讨论】:
标签: vba excel multiple-columns