Dim App As New MSExcel.Application Dim Wb As MSExcel.WorkBook = App.WorkBooks.Open("D:\A.xls") Dim Ws As MSExcel.WorkSheet = Wb.WorkSheets(1) Dim Rg As MSExcel.Range = Ws.Range("A1") Rg.Value = "Foxtable操控Excel全攻略" Dim Chr As MSExcel.Characters = Rg.Characters(9,2) With Chr.Font .Name = "黑体" '字体 .Size = 20 '字号 .Bold = True '加粗 .Italic = True '斜体 .Underline = MSExcel.XlUnderlineStyle.xlUnderlineStyleSingle .ColorIndex = 3'颜色 End With App.Visible = True