MUO

Visual Basic Programming

Readers like you help support MUO. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.

latest

A woman stands next to a server rack holding a laptop.
VB.NET SQL Examples for Querying Databases Efficiently

Discover how to issue the most common SQL commands using VB.NET.

By 
Someone typing on a laptop with stylised graphical overlays representing email and Excel.
How to Send Emails From an Excel Spreadsheet Using VBA Scripts

Our code template will help you set up automated emails from within Excel using Collaboration Data Objects (CDO) and VBA scripts.

By 
Man Working on Computers Coding
How to Use the For Each Loop in Excel VBA

Want to automate repetitive tasks in Excel using VBA? Learn how to use the For Each loop to efficiently manipulate data in your spreadsheets.

By 
Woman Using three computers together
How to Use the Do-While Loop in Excel VBA

Want to automate repetitive tasks in Excel VBA? Learn how to use the Do-While loop to execute a set of actions repeatedly until a condition is met.

By 
A man and a woman, facing each other, using their laptops in a bar
Learn to Automate Your Vlookups With Excel VBA

Take your Excel programming a step further by using the popular VLOOKUP function in your VBA code.

By 
Excel logo on blurred background
How to Insert a Picture Into a Cell Using VBA in Excel

You can easily insert images in your spreadsheets and manipulate them with macro code. Here's how to insert a picture into a cell using VBA in Excel.

By 
Man in a black suit talking near a laptop with another man
Learn How to Automatically Create Pivot Tables in Excel With VBA

Pivot tables are a powerful data visualization tool, but they can be awkward to set up. Take the frustration out of this process with a VBA script.

By 
Word logo with a broken link
How to Remove All Hyperlinks in a Word Document Using VBA

You can automatically remove all hyperlinks from your document by setting up a macro in Word. Here's how to do it easily.

By 
Microsoft word logo on blurred yellow background
How to Automatically Add Text to a Document’s Header in Microsoft Word Using VBA

Want to automate the process of adding text to a document's header in Word? Here's how you can use VBA to automatically add headers to Word documents.

By 
VBA coding in an Excel spreadsheet
The Excel VBA Programming Tutorial for Beginners

VBA is a Microsoft Office power tool. You can use it to automate tasks with macros, set triggers, and lots more. We'll introduce you to Excel visual basic programming with a simple project.

By 
Excel logo on sand background.
Understanding Excel Cells vs. Range Functions in VBA

Using the Range and Cells functions in Excel can get very confusing. Here's how you can make use of them in ways you probably never imagined, with the help of VBA

By 
A programmer is working on app development on computer
Can You Run Visual Basic 6 Apps on Windows 11?

Windows 11 has made major strides for the operating system, but can you run older Visual Basic 6 apps on it still?

By 
Man working on two laptops
How to Create and Design a VBA User Form

Forms allow you to add a user interface to your Office-backed VBA programs. Learn how to create one and discover which controls they support.

By 
Man in black suit sitting in front of a computer
How to Create an Automated Data Entry Form in Excel VBA

Follow this tutorial to create a custom VBA-automated data entry form.

By 
Top 9 Professional Sample Code Websites for Programmers

Looking to learn and create applications with example code snippets? Here are the best free code sample websites to start with.

By 
excel-fit-screen
How to Fit Your Excel Spreadsheet to Your Screen

Are you tired of resizing Excel spreadsheets to fit your screen? Here are three quick solutions that can make your spreadsheet much easier to view.

By 
developer doing coding in laptop
How to Create a VBScript ODBC Connection

Quickly connect your databases with VBScript.

By 
high-low-level
High-Level vs. Low-Level Programming Languages, Explained

What are high-level and low-level programming languages? How does it affect learning to write code? Here's what you need to know.

By 
excel-cells-vba
How You Can Make Your Own Simple App With VBA

Want to know how to make your own VBA application to solve problems? Use these tips to build your own VBA software.

By 
mistakes-excel-macros
4 Mistakes to Avoid When Programming Excel Macros With VBA

Simple code is vital for Microsoft Excel power users. But how can you make or safely exit a for loop using VBA in Excel?

By 
See more articles +