Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-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!

*Eng-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

Updating code

Updating code

Updating code

I have written a VBA code and it works perfectly fine untill I insert an entire row to the exisitng sheet. The code doesn't work for that new cell I have inserted but works fine for other cells. Any suggestion are apprecited.

RE: Updating code

Can you show us the code?  I assume that this an excel issue.  Also, you may want to put this in the VBA forum.  You may get a better response.

RE: Updating code

This is the code to highlight the cell and make the font bold if checkbox is checked.

Private Sub CheckBox1_Click()

    Do Until Selection.Offset(1, 0).Value = ""
    Selection.Offset(1, 0).Select
        If CheckBox1 = True Then
            If Selection.Value = Range("I5") Then
                With Selection.Font
                .ColorIndex = 3
                .Bold = True
                End With
             End If
            Selection.Font.ColorIndex = 0
            Selection.Font.Bold = False
            End If
End Sub

Would you provide me the link to VBA forum.

RE: Updating code

I tried to recreate your problem but couldn't.  Where are you inserting the new row?  The macro begins reading cells in column C starting at C6 looking for a match to I5, and quits after encountering a blank cell.

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 Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

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

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


Close Box

Join Eng-Tips® Today!

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

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close