Vba - Selection选区操作


选区字体Size、Bold、Italic与Underline:

Sub Operate_Font()
'
' Size、Bold、Italic and Underline
'
Selection.Font.Bold = True
Selection.Font.Italic = True
Selection.Font.Underline = True
Selection.Font.Size = 12
Selection.Font.Size = 14
Selection.Font.Size = 16
End Sub
选区复制:

Selection.Copy
选区清空内容:

Selection.ClearContents

————————————————
版权声明:本文为CSDN博主「Kuoa」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_42292831/article/details/102783711


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM