Skip to content

Duplicate Declaration error while working on multiple VBA-Enabled files inside the same project #83

@DecimalTurn

Description

@DecimalTurn

While working on VBA-Build, I can have 2 modules with the same name, but they belong to different files.

In the example below, I have 2 Excel files ExcelAddin.xlam and ExcelWorkbook.xlsm and they both have a Module1 which is identified as an error by VBA-Pro.

Image

Image

I'm going to change the module name of one of them to fix the issue, but it would be nice if there was a way to define a namespace to avoid those conflicts.

Looking at XVBA, they use a VBA comment to define a namespace for he file:
https://youtu.be/pqSOvxEFaFA?si=FYKvWb5szHOugxtV&t=49

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions