Discussion Locked
0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a very long data entry form I'm working on. In order to help those inputting to keep their place, I want the active cell to turn yellow, or something similar to draw attention. Thanks for suggestions.
6 replies
by curlergirl
Offhand, the only way I can think that you could do this is by using macros. You could create a macro that changes the background color to yellow and one that changes it back to whatever is the norm. Then you could set the field properties to run the first macro on "Got Focus" and the second on "Lost Focus". Of course, you'd have to set these properties individually for every data entry field on the form. You could do this globally by selecting all the data entry fields together (after you've finished designing the form) and then choosing properties for all fields at one time. Hope this helps!
by acwiz
Create a form with two fields named Field1 and Field2 Paste the code to the code module. In Properties set the OnEnter and OnExit to [Event Procedure]for both Field1 and Field2.
'Start Code
Private Sub Field1_Enter()
Me.Program.BackColor = 65535
End Sub
Private Sub Field1_Exit(Cancel As Integer)
Me.Program.BackColor = 16777215
End Sub
Private Sub Field2_Enter()
Me.Requirement_Id.BackColor = 65535
End Sub
Private Sub Field2_Exit(Cancel As Integer)
Me.Requirement_Id.BackColor = 16777215
End Sub
'End Code
Thanks Fred! Speaking with you over the phone helped me get the full jist of your answer.
by dtighe
I really don't have a solid answer from myself. I say do what the guy right above did. Do it in code. I NEVER use Macros. Writing your own VBA always turns out to be better in the long run. Just a bit of advice!
This discussion is closed to new replies.
Trending Software posts
Sort by Trending
Question Unanswered
Icons, favicons and merch graphics on Squarespace: my workflow for getting
1 helpful
0 replies
Question Unanswered
How Are Teams Testing AI-Generated Code Before Production?
0 helpful
0 replies
Discussion
Network Printer Works for Everyone Except Me
0 helpful
10 replies
0 helpful
4 replies
Discussion
Is There any Reverse Video Search Tool
0 helpful
8 replies