To insert a PI symbol in Excel, hold down the ALT key while typing 227 on the numeric keypad. In VBA, the PI function can also be found in the Application section. Worksheet functions Worksheet Functions In VBA, the worksheet function is used to refer to a specific worksheet.