rhombus4
Well-known Member
- Joined
- May 26, 2010
- Messages
- 586
- Office Version
- 365
- 2016
- Platform
- Windows
I have a userform which I open in workbook1, sometimes while the userform is open I need to access a different workbook.
Problem Is when I try and enter data in workbook 2 I get Run-time Error '424' Object required"
I do have worksheet calculate event in the userform, is this what is causing the error or could something else be an issue
i.e.
Private Sub ws_Calculate()
Me.Textbox1 = ws.Range("myrange").Text
End Sub
Do I need to add thisworkbook or userform1 or something similar in the code.
I already have it as modeless when the userform is opened
Problem Is when I try and enter data in workbook 2 I get Run-time Error '424' Object required"
I do have worksheet calculate event in the userform, is this what is causing the error or could something else be an issue
i.e.
Private Sub ws_Calculate()
Me.Textbox1 = ws.Range("myrange").Text
End Sub
Do I need to add thisworkbook or userform1 or something similar in the code.
I already have it as modeless when the userform is opened