[英]Excel Macro to change font in cell
我需要一個可以在我的電子表格中搜索的宏:
您應該首先使用記錄宏來回答這些類型的問題。
Dim LastRow As Long
LastRow = Cells(Rows.Count, 1).End(xlUp).Row
For I = 0 to LastRow
If Cells(I, 2).Value = "H2" OR If Cells(I, 2).Value = "H3" Then
Cells(I, 2).Font.Bold = True 'Probably doesnt work search the syntax
End If
Next I
我認為有錯誤,但結構是這樣的
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.