Felicitas Posted October 28, 2021 Share Posted October 28, 2021 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 More sharing options...
Subz Posted October 28, 2021 Share Posted October 28, 2021 Maybe the following post will help: Link to comment Share on other sites More sharing options...
junkew Posted October 28, 2021 Share Posted October 28, 2021 no, xlsx normally does not have macro's you should switch to xlsm no, normally security settings will not allow to do this yes if above is allowed you can alter your workbook with the vbide object modelhttps://bettersolutions.com/vba/visual-basic-editor/extensibility-object-model.htm no, in general I would do this directly from excel vba editor Earthshine 1 FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now