Need Excel VBA code that will allow me to protect certain cells and not others.
$30-250 AUD
I përfunduar
Postuar about 6 years ago
$30-250 AUD
Paguhet në dorëzim
At the moment I have inserted VBA code into my spreadsheet to allow for clicks of the mouse to add or remove colour. When I try to insert code, in combination with my own code, to protect certain cells or use unlocked/locked functions it will not work.
I need somebody to write some code that will allow me to still protect certain cells and click to change colours on others.
I have pasted the code I used below;
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
Select Case [login to view URL]
Case xlNone, 4: [login to view URL] = 3
Case Else: [login to view URL] = 4
End Select
End Sub
Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)
Cancel = True
[login to view URL] = xlNone
End Sub
I have been using VBA for a long time now to solve different business processes which native functions of Excel can't do. Feel free to message me so that we can talk more about this project.
$30 AUD në 1 ditë
5,0 (5 përshtypje)
3,1
3,1
9 freelancers are bidding on average $60 AUD for this job
I am an Excel VBA specialist. All of my projects involve Excel and VBA so I am quite confident that I can assist you with this project. Feel free to contact me so we can discuss the details of this project.
Hi, Glad to know your requirement. I am an excel vba expert and have delivered five vba projects in the past one month. Would like to do the task for you. I will do this task within 3 to 4 hours, and the deadline is 24 hours. Looking forward to working with you. Thank you, Regards.
I will give you the code once you run it, certain cells will be locked and you can't enter any data inside.
If you need to protect the format as well, please let me know so I can see what I can do for you.
The code ready with me.
Regards,