Forum Discussion
Ian_Ryan
Jan 07, 2020Copper Contributor
Print to a Text Box on a User Form from VBA Module
Hello All, I am in need of some expert guidance to an issue I have. Basically, I have created a User Form with some buttons on the form that trigger different Modules of VBA. This all works fine ...
- Jan 08, 2020This means you need to refer to the userform instance that is displaying to access that routine. So if you have an object variable named "MyUF" which points to the currently running userform you can call the sub like so:
MyUF.WriteToLogText "LogText", False
Ian_Ryan
Jan 08, 2020Copper Contributor
The Sub is on the code page of the User Form.
JKPieterse
Jan 08, 2020Silver Contributor
This means you need to refer to the userform instance that is displaying to access that routine. So if you have an object variable named "MyUF" which points to the currently running userform you can call the sub like so:
MyUF.WriteToLogText "LogText", False
MyUF.WriteToLogText "LogText", False
- Ian_RyanJan 09, 2020Copper Contributor