1、首先,打开或者新建一个Excel表格,如下图所示
3、编写代码如下图所示Sub s123() Range("f2") = Application.WorksheetFunction.(出现你熟悉的函数)End Sub