- ·上一篇教育:excel表格怎么弄列标题格式
- ·下一篇教育:电子表格根据出租率如何制定客房服务员的人数(请考虑到国定假日,年休日的
excel表格怎么设置成宋体
1.如何在excel利用VBA将选中单元格中中文改成“宋体”,字符以及数
Sub aa()
Dim str As String
Dim i As Integer
Dim a As Range
Set a = Range("a1:a10") '选择的范围
For Each b In a
str = b.Cells
For i = 1 To Len(str)
If Asc(Mid(str, i, 1)) < 0 Then
b.Cells.Font.Name = "黑体"
Else
b.Cells.Font.Name = "Arial"
End If
Next i
Next
End Sub
评论内容只代表网友观点,与本站立场无关!
评论摘要(共 0 条,得分 0 分,平均 0 分)