VBA is Visual Basic for Applications. So if you put that code in Word )or any other Office application) it should run as is.