【发布时间】:2015-11-11 21:11:34
【问题描述】:
我正在使用 excel VBA,我想在组合框中获取所有字体的列表
谁能帮帮我
我尝试了这段代码,但在 listcount 中出现错误:
...
Set FontList = Application.CommandBars("Formatting").FindControl(ID:=1728)
' Put the fonts into column A
*For i = 0 To FontList.ListCount - 1*
combobox.AddItems FontList.List(i + 1)
Next i
' Delete temp CommandBar if it exists
On Error Resume Next
TempBar.Delete
End Sub
【问题讨论】: