JRCross
10-19-2016, 05:20 PM
So I'm working on a UserForm to generate notes at the moment, and one thing I've been trying to do is create a function that, among other things, makes the next frame in the segment visible
I currently have this as the starter to my function
Private Function POROChange(cbo As ComboBox, PORO As ComboBox, poroLabel As label, Optional frameBox As frame)
Then I call the function in another sub
Private Sub cboOutcome1_Change()
POROChange cboOutcome1, cboPORO1, POROLabel1, frameOut2
When I don't include the parameter for frame it works fine, but as soon as I include the parameter for frame it gives a type mismatch error 13
What am I doing wrong?
I currently have this as the starter to my function
Private Function POROChange(cbo As ComboBox, PORO As ComboBox, poroLabel As label, Optional frameBox As frame)
Then I call the function in another sub
Private Sub cboOutcome1_Change()
POROChange cboOutcome1, cboPORO1, POROLabel1, frameOut2
When I don't include the parameter for frame it works fine, but as soon as I include the parameter for frame it gives a type mismatch error 13
What am I doing wrong?