JWock82 / JWock82/xlFrame

LoadCombo.cls is being imported as a Module not a Class

Open
#23 6 comments 2 reactions 0 assignees View on GitHub
Dominant language
VBA
Stars
87
Forks
25
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
While attempting to import LoadCombo.cls into a VBA project, it will be imported as a Module not a Class. Additional header lines will be added, see first screenshot below.

**To Reproduce**

1. Download the code as zip from github and unzip locally.
2. In Excel, open a VBA Project.
3. Right click the project name and select "Import File...".
4. Find the file "LoadCombo.cls" and hit open.

**Expected behavior**
A LoadCombo class should be created instead of a LoadCombo Module and without the additional header lines.

**Screenshots**
![image](https://github.com/JWock82/xlFrame/assets/126934683/55709286-bef7-4466-8e72-6f6c51cc80c5)
![image](https://github.com/JWock82/xlFrame/assets/126934683/a4f0d3d8-7071-4246-83db-a07569e70855)
![image](https://github.com/JWock82/xlFrame/assets/126934683/a4e68a63-da30-45af-9cd4-2a6ae636ecc0)

**Additional context**
I'm going to leave this in here just in case someone else needs it. This is not a bug per se, as I believe the code will work just fine if you create the class manually and copy/paste the code into it (minus the added header lines.) This happens because the line endings in the file LoadCombo.cls are UNIX-style (LF) vs the Windows-style (CR+LF). See [this ](https://github.com/VBA-tools/VBA-Web/issues/24) from Tim Hall.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.