On a userform, I have a listbox. What I do not understand is why values do not write to the listbox if called from an external module.
A command button on the userform calls a sub that adds text. This text displays. Another sub is called by a module that also writes text, but this text never appears in the listbox.
Both code sections are being called and the listbox is not being cleared anywhere.
What explains this behavior? Thanks
' listbox is populated after calling
' listbox is blank after calling
A command button on the userform calls a sub that adds text. This text displays. Another sub is called by a module that also writes text, but this text never appears in the listbox.
Both code sections are being called and the listbox is not being cleared anywhere.
What explains this behavior? Thanks
' listbox is populated after calling
Code:
Private Sub btnPopulateListbox_Click()
listboxTest.AddItem "written after button press on form"
End Sub
Code:
Public Sub PopulateListboxFromModule()
listboxTest.AddItem "written after called by module"
End Sub