Ive been working on a data entry form to input lines in a delivery plan in excel. After many manual tests and a few modules to run primitive unit tests, i got it working flawlessly on my local prototype .xlsm workbook. Below is an example of the form and a github repo containing the vba code.
Github repo of NDA safe example data and VBA code
After uploading it to sharepoint and testing it again, no problems appeared for myself. When i then released it to my colleages, one of them ended up with a "duplicate declaration" compilation error. This error somehow cascaded across machines, bricking the code to open the form, untill i replaced the form module with a backup. The form opens and works, with no problem, on all other computers ive tested it on.
The debugger points me to clsLeveringsPlanForm.show in modFormShowerButton.bas as the duplicate declaration. Trying to fix this by defining the form as an instance of clsLeveringsPlanForm, then using that instance results in the "Private frm As clsLeveringsPlanForm" as duplicate declaration. The weird thing is that im able to run the form on multiple other computers at the same time, but not after his run.
Attribute VB_Name = "modFormShowerButton"
' ========= modFormShowerButton.bas =========
Option Explicit
Public Sub Show_New_Line_Form()
clsLeveringsPlanForm.Show vbModeless
Call RefreshMasterProductList
End Sub
Sadly im not able to reproduce the error on a local copy, but theres one stored in the github repo. If i am missing some crucial information about forms always breaking because of concurrent editing, version differences or any other hints, i would greatly appreciate the help. :)
