Position: Front
emb_type: text
thread_color: Sky
font_type: Serif2
text_line_1: PS
text_line_2:
text_line_3:
logo_code:
理想情况下,每次刷新数据源时,它都会引用列I和Apply。
非常感谢任何帮助。
由于
克雷格
1 个答案:
答案 0 :(得分:0)
试试这个短宏(对于 A 列 :
Sub PreColon()
Dim i As Long, N As Long, s As String, j As Long
N = Cells(Rows.Count, "A").End(xlUp).Row
For i = 1 To N
s = Cells(i, 1)
j = InStr(1, s, ":")
If j <> 0 Then
Cells(i, 1).Characters(1, j - 1).Font.Bold = True
End If
Next i
End Sub