Simple VBA Tutorial

A simple tutorial showing how to add text and change font appearance using Visual Basics in Microsoft Word

Comments

Joseph Musa says:

Hi There,
I am trying to code this song in VBA, can you help?

99 bottles of beer on the wall, 99 bottles of beer.
Take one down and pass it around, 98 bottles of beer on the wall.
98 bottles of beer on the wall, 98 bottles of beer.
Take one down and pass it around, 97 bottles of beer on the wall.
97 bottles of beer on the wall, 97 bottles of beer.
Take one down and pass it around, 96 bottles of beer on the wall.

2 bottles of beer on the wall, 2 bottles of beer.
Take one down and pass it around, 1 bottle of beer on the wall.
1 bottle of beer on the wall,1 bottle of beer.
Take one down and pass it around, 0 bottles of beer on the wall.

redmarcin says:

Very nice turtorial, thanks.
But I have a one question: why did you use “Set rng = doc.Paragraphs(3).Range” two times ? 

 Write a comment

*

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!