|
-
May 28th, 2006, 05:39 PM
#1
Thread Starter
Fanatic Member
Help - GotFocus and Lost focus Event
Hi! can anybody pls. help me..I have an excel file with macro using VB6...my excel file has a button, where in when i click it a form will appear containing 2 textboxs and 1 button and i want my textbox to change color when it "GotFocus" and "lostFocus" but unfurtunetly the GotFucos Event and LostFOcus event is not in the list. can anybody pls. help me on this...thanks in advance!
-
May 28th, 2006, 07:42 PM
#2
Addicted Member
Re: Help - GotFocus and Lost focus Event
Hi daimous,
First off, your message will probably be moved to "Office Development".
But anyway, what version are you using. I have Excel 2002. And it has the events.
VB Code:
Private Sub TextBox1_GotFocus()
End Sub
Private Sub TextBox1_LostFocus()
End Sub
Keith_VB6
If you have any further questions, just ask.
If this solves things, then please mark the thread resolved.
[Thread Tools] --> [Mark Thread Resolved]
-
May 28th, 2006, 08:32 PM
#3
Thread Starter
Fanatic Member
Re: Help - GotFocus and Lost focus Event
why? my question is something to do with VB6...anyway..im using office 2003..i just dont know why i dont have the gotfucos and lostfocus events...
-
May 28th, 2006, 08:46 PM
#4
Re: Help - GotFocus and Lost focus Event
This isn't VB6, but VBA6.X (Visual Basic for Applications), which uses similar code, but is different - especially in cases like this. As such I have moved this thread to the Office Development forum, where you should get more relevant answers.
-
May 28th, 2006, 08:54 PM
#5
Thread Starter
Fanatic Member
Re: Help - GotFocus and Lost focus Event
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|