Is visual basics only available in Microsoft Excel?

No, Visual Basic is a program on its own too, used to create programs. VBA is used in Excel and other programs (Visual Basic for Applications).