Hi everyone,
I am messing around with Excel and as an assignment I need to create a VBA function that prints my name 10 times in a loop. Then I need to create a button that will trigger the function. How can I do this?
I tried:
Module Hello
Sub Main()
MsgBox ("Hi, my name is Pat")
End Sub
End Module
But it did not work. I am not sure how to get the button to work either. If you could offer any help I would really appreciate it. thank you!
I am messing around with Excel and as an assignment I need to create a VBA function that prints my name 10 times in a loop. Then I need to create a button that will trigger the function. How can I do this?
I tried:
Module Hello
Sub Main()
MsgBox ("Hi, my name is Pat")
End Sub
End Module
But it did not work. I am not sure how to get the button to work either. If you could offer any help I would really appreciate it. thank you!