RockandGrohl
Well-known Member
- Joined
- Aug 1, 2018
- Messages
- 810
- Office Version
- 365
- Platform
- Windows
Hi all,
I have a userform which opens and needs to display a date value in a text box at the top. The box is called "DateBox"
I'm unsure on whether this is the right code, and where it needs to go.
The Sub "Automationopen" loads "AutomationCP"
AutomationCP has a module called "Datebox_Change()"
And my code is as follows:
I've also tried .Value instead of .Text but nothing happens.
I don't get an error message, just nothing happens. Any ideas? Thanks.
I have a userform which opens and needs to display a date value in a text box at the top. The box is called "DateBox"
I'm unsure on whether this is the right code, and where it needs to go.
The Sub "Automationopen" loads "AutomationCP"
AutomationCP has a module called "Datebox_Change()"
And my code is as follows:
Code:
AutomationCP.DateBox.Text = Cells(2, ActiveCell.Column).Value
I've also tried .Value instead of .Text but nothing happens.
I don't get an error message, just nothing happens. Any ideas? Thanks.