Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

highlight on focus

highlight on focus

highlight on focus

I have seen several posts regarding changing the background color to highlight a box when it is selected. These all use the focus property. All the posts I have seen require you to type in the code for each box you want to highlight. Is there a way to make a macro for highlight and no highlight so you don't have to retype the code each time? It would be nice to just pick a macro in the on and off focus instead of typing a ton of times.

RE: highlight on focus

you may be able to make a generic function.
And pick it.
I know you've heard of copy and paste
Copy the code from this forum and paste it into a Notepad document.
Then you can Copy it "Press Ctrl-C" and paste it in your code Window "Press Ctrl-V"

DougP, MCP
 Ask me how Bar-codes can help you be more productive.

RE: highlight on focus

You are correct I have been doing the cut and paste thing, and it works fine. I just thought it would be faster to have a macro to pick from. Does it slow down the form having all those little bits of code all over it as opposed to a macro? I can't notice a difference.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close