Need Excel VBA code that will allow me to protect certain cells and not others.

Imekamilika Ilichapishwa Miaka 6 iliyopita Kulipwa wakati wa kujifungua
Imekamilika Kulipwa wakati wa kujifungua

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 [url removed, login to view]

Case xlNone, 4: [url removed, login to view] = 3

Case Else: [url removed, login to view] = 4

End Select

End Sub

Private Sub Worksheet_BeforeRightClick(ByVal Target As Range, Cancel As Boolean)

Cancel = True

[url removed, login to view] = xlNone

End Sub

Excel

Kitambulisho cha Mradi: #16128060

Kuhusu mradi

9 mapendekezo Mradi wa mbali Ipo mtandaoni %project.latestActivity_relativeTime|badilisha%

Imetuzwa kwa:

jonathanpradas

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 kwa siku 1
(Maoni 5)
3.1

9 wafanyakazi huru wanazabuni wastani wa $60 kwa kazi hii

aubrey03

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.

$50 AUD kwa siku 1
(Maoni 18)
4.8
nurnga1218

Hi, I'm not really sure about what you want, but I think I have a solution for it. I'm waiting your reply. Thanks.

$35 AUD kwa siku 1
(Maoni 30)
4.3
periyannas

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 Zaidi

$66 AUD kwa siku 1
(Maoni 7)
3.2
rameshmahala

Hello there, I would like to be considered for this job as I have great working experience in VBA development. Thanks, Ramesh

$88 AUD kwa siku 3
(Maoni 3)
2.6
maitham10

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 c Zaidi

$30 AUD kwa siku 0
(Maoni 3)
0.9
casandoval

i have worked with plenty of vba applications, as well as vbs applications. I can deliver in 2-3 days.

$35 AUD kwa siku 10
(Maoni 0)
0.0