VBA and Python are different programming languages with distinct syntax and use cases. You do not need functions to print values in Python, but you’ll need to define a subroutine in VBA.   Python: print(“Hello World”)   VBA: Sub PrintALine()             Debug.Print “Hello World” End Sub