Paul The Programmer

North East Software and Websites

60 Second Blog

Lesson 3. My First Program

Posted at 08:15 AM on December 23, 2008

Next we will learn that programming involves typing. I bet that gave you a start. Yes, sorry but you have to do some real work now. Here is how we write some code.

 

In the editor, you opened it in lesson 2, double click (that is two left hand mouse button clicks – click click) where it says ThisWorkbook

 

 

Once you’ve double clicked your left mouse button, you should see this screen

 

 

 

What you’ve done, is create an editable area to write your VBA code in (the bug nest). Were now going to type in some code and run it. Imagine you have an aunty Mary and she wears bloomers. We want our program to pop up a box and tell everyone about Aunt Mary and her bloomers. So we’d type the following

 

 

To get this program to run, we press the F5 key (function key) on our keyboard. This will run our first program and pop up a message like this

 

 

Oh what joy, didn’t take you long to write your first program. Your flying along now.

Categories: VBA Tutorials (mixed nuts)

Post a Comment

Already a member? Sign In

0 Comments

Dont Miss a thing.

Get FREE updates from me by email. Get a mini profile that lives on my website. Learn and teach. Communicate and share ideas with other members. Join here.

Recent Blog Entries

by paultheprogrammer | 0 comments
by paultheprogrammer | 1 comments
by paultheprogrammer | 0 comments
by paultheprogrammer | 2 comments

Recent Forum Posts

by paultheprogrammer over a year ago

Recent Videos