![](/img/trans.png)
[英]How do I copy text from one cell into all empty cells in the same column?
[英]How to Copy the one Cell Format to the all the Cells beside that Cell?
您能否通过说“如何复制第1行中的单元格的颜色,字体和样式”来指导我? 但是不是Cell的内容。我写了下面的代码,但是上面的代码都复制了First Cell数据,这是我所不希望的。
ob3.Range("A1").Copy
ob3.Range("A1").EntireRow.PasteSpecial(-4163) 'xlValues
请在这里指导!
谢谢,
尝试以下方法:
ob3.Range("A1").Copy
ob3.Range("A1").EntireRow.PasteSpecial (xlPasteFormats)
Application.CutCopyMode = False
我在这里看到Scott的观点:)您既可以设置数字本身,也可以使用const
通过工作表使用此formattig。
Const xlPasteFormats = -4122
Const xlPasteValues = -4163
ob3.Range("A1").Copy
ob3.Range("A1").EntireRow.PasteSpecial xlPasteFormats
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.