.gitignore for VBA
3 ignore rules for VBA, ready to copy into your repository.
Event-driven programming language
The complete .gitignore for VBA
# Generated by LFGitignore - https://lfgitignore.com
# Created: 2026-08-05 02:27:19 UTC
# Technologies: VBA
### VBA ###
# Microsoft Office temp file
~$*
*.[lL][aA][cC][cC][dD][bB]
*.[lL][dD][bB]
What these VBA rules actually ignore
Every pattern below, and why it belongs in your .gitignore.
Office temporary files
| Pattern | What it ignores |
|---|---|
~$* |
Microsoft Office temp file |
Access database lock files (laccdb, ldb)
| Pattern | What it ignores |
|---|---|
*.[lL][aA][cC][cC][dD][bB] |
Access database lock files (laccdb, ldb) |
*.[lL][dD][bB] |
Access database lock files (laccdb, ldb) |
How to use this .gitignore for VBA
- Copy the VBA rules above, or download the file directly.
- Create a file named .gitignore at the root of your Git repository and paste the rules into it.
- If some of those files are already tracked, run git rm -r --cached . then commit again — Git only applies ignore rules to untracked files.
- Commit the .gitignore so everyone on the team shares the same rules.