https://github.com/sancarn/VBProjectHack
Ensure VBE is extensible
https://github.com/sancarn/VBProjectHack
Last synced: 5 months ago
JSON representation
Ensure VBE is extensible
- Host: GitHub
- URL: https://github.com/sancarn/VBProjectHack
- Owner: sancarn
- Created: 2021-06-01T12:44:26.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-14T10:02:41.000Z (about 3 years ago)
- Last Synced: 2024-08-13T07:18:17.852Z (8 months ago)
- Language: VBA
- Size: 2.93 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- jimsghstars - sancarn/VBProjectHack - Ensure VBE is extensible (VBA)
README
# Simple VBProject hack
This project contains a simple mechanism which always ensures VBProject is available.
## Usage
The project exposes a class. When the class initialises it will set VBProject extensibility mode to true. When the class de-initialises it will reset the VBProject extensibility.
```vb
Sub doSomething()
With new VBProjectHack
'Do work...
Debug.Print ThisWorkbook.VBProject.Name
End with
End Sub
```