dukeofscouts
Board Regular
- Joined
- Jan 19, 2009
- Messages
- 146
I've been toying with Userforms for about a week now. Thanks to google I've been able to find lots of help with trouble shooting most of my issues. However, this one has me stumped. When I run the macro to call the userform, it says that the Find function is not recognized. According to all the data I can dig up Find does work in VBA. Where did I make the wrong turn?
Private Sub UserForm_Initialize()
Tectbox1.Value = ActiveCell.Value
TextBox2.Value = Left(ActiveCell.Offset(1, 0), 3)
TextBox3.Value = Right(ActiveCell.Offset(1, 0), Len(ActiveCell.Offset(1, 0) - Find(":", ActiveCell.Offset(1, 0))))
TextBox4.Value = Mid(ActiveCell.Offset(1, 0), 5, 3)
TextBox5.Value = Mid(ActiveCell.offser(1, 0), 9, 2)
TextBox6.Value = Left(ActiveCell.Offset(2, 0), Find("@", ActiveCell.Offset(2, 0) - 1))
TextBox7.Value = Right(ActiveCell.Offset(2, 0), Find("@", ActiveCell.Offset(2, 0) - 2))
TextBox8.Value = Left(ActiveCell.Offset(3, 0), Find("-", ActiveCell.Offset(3, 0) - 1))
TextBox9.Value = Right(ActiveCell.Offset(3, 0), Find(">", ActiveCell.Offset(3, 0) - 2))
End Sub
Private Sub UserForm_Initialize()
Tectbox1.Value = ActiveCell.Value
TextBox2.Value = Left(ActiveCell.Offset(1, 0), 3)
TextBox3.Value = Right(ActiveCell.Offset(1, 0), Len(ActiveCell.Offset(1, 0) - Find(":", ActiveCell.Offset(1, 0))))
TextBox4.Value = Mid(ActiveCell.Offset(1, 0), 5, 3)
TextBox5.Value = Mid(ActiveCell.offser(1, 0), 9, 2)
TextBox6.Value = Left(ActiveCell.Offset(2, 0), Find("@", ActiveCell.Offset(2, 0) - 1))
TextBox7.Value = Right(ActiveCell.Offset(2, 0), Find("@", ActiveCell.Offset(2, 0) - 2))
TextBox8.Value = Left(ActiveCell.Offset(3, 0), Find("-", ActiveCell.Offset(3, 0) - 1))
TextBox9.Value = Right(ActiveCell.Offset(3, 0), Find(">", ActiveCell.Offset(3, 0) - 2))
End Sub