VBA之单元格

我们如何对单元格进行公式赋值

dim bookname as string

dim sheetname as string

dim rangename as string

Workbooks(bookname).Worksheets(sheetname).Range(rangename).Formula = "=sum("E1")"

对单元格里面的内容进行加粗

Workbooks(bookname).Worksheets(sheetname).Cells(E1).Font.Bold = True

以上是单元格的部分内容,后续会更新补充。

你可能感兴趣的:(VBA)