platypus007
New Member
- Joined
- Oct 24, 2019
- Messages
- 19
- Office Version
- 2016
- Platform
- Windows
Hi, I have this problem with code on some PCs (Error 91). Code is used to give user splash screen after start of workbook - where is classical EULA conditions located with button Accept and Decline. I have problems to call Sheet named EULA, which have the text for the Userform TextBox. Where I go wrong?
Can you help me?
Thanks
VBA Code:
Dim txt As String
Dim TextBox1 As Shape
ThisWorkbook.Sheets("EULA").Select
txt = Range("B2").Value & vbNewLine & Range("B3").Value & vbNewLine & Range("B4").Value & vbNewLine & Range("B5").Value & vbNewLine & Range("B6").Value & vbNewLine _
& Range("B7").Value & vbNewLine & Range("B8").Value & vbNewLine & Range("B9").Value
Me.TextBox1.Text = txt
Me.TextBox1.SetFocus
Me.TextBox1.CurLine = 0
ThisWorkbook.Sheets("DTD_OVERVIEW").Select
Can you help me?
Thanks