If (Year(n) - Year(d) >= 1) Then
MsgBox "Latest Fiscal Year Data is" & dd & "Days," & md & "Months," & yd & "Years Old"
Sheets("" & Filename).Cells(5, y2).Font.Italic = True
Sheets("" & Filename).Cells(5, y2).Font.Color = RGB(0, 0, 255)
Sheets("" & Filename).Cells(5, y2).Font.Bold = True
Sheets("" & Filename).Cells(5, y2).Font.FontStyle = Arial
End If
文本颜色变成喜欢蓝色,但其它命令粗斜体不执行如果功能不工作VBA
如果你手动选择单元格,并使用带命令手动更改,会发生什么? –
ActiveSheet.Cells(7,1)= .Font.Color RGB(0,0,255) ActiveSheet.Cells(7,1).Font.FontStyle = “粗斜体” ActiveSheet.Cells(7,1)。 Font.Name =“Arial” – BData