Jump to content

Writing some VBA-Code to an excel file


Recommended Posts

Hello dear community,

is there a way to load some vba-code to a xlsx-file?

i want to apply this code :

Private Sub Worksheet_Change(ByVal Target As Range)
    If Not (Intersect(Target, Range("e:e")) Is Nothing) Then
        Target.Interior.ColorIndex = 3
    End If
End Sub

the code marks every cell the user did a change to.

Any good ideas?

Thank you so much ;)

Link to comment
Share on other sites

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...