how to make cell/range read only and allow copy content

davidmyers

Board Regular
Joined
Jan 29, 2017
Messages
88
Office Version
  1. 2016
Platform
  1. Windows
Hi,
I have some columns I'd like to make read only - can't edit content - but content can be selected to copy,
how do I do this?

Thanks for any help
David
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
1. You can protect the whole sheet, by right click on the sheet names tab, select protect sheet.
in context Protection Menu you can checked other options you needed, like dis/allow format, dis/allow delete, dis/allow insert, dis/allow sort.
You can protect the sheet with password or leave it empty.

2. If want to protect the whole sheet but left some range unprotected to allow changes,
first select the range that allow to edit, right click, choose "Format Cells...", select "Protection" tab, unchecked "Locked",
then do #1 .

3. Protection menu also available In Excel Ribbon, goto Review, "Protect Sheet".
 
Upvote 0
Thanks Ihartono, This seems to work - I was doing the opposite first protecting the sheet then unprotecting the column.
But now I have another problem, there's a UserForm with a listbox connected to one of the not protected columns which
is activated with the following code:

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    If Not Application.Intersect(Target, Range("N2:N756")) Is Nothing Then
        Cancel = True
        UserForm1.Show
    End If
End Sub

Before following your instruction above it was working ok, now when I double click in the column nothing happens, Any Ideas?

Thanks
David
 
Upvote 0
Did you un protect column "N"
Thanks Ihartono, This seems to work - I was doing the opposite first protecting the sheet then unprotecting the column.
But now I have another problem, there's a UserForm with a listbox connected to one of the not protected columns which
is activated with the following code:

Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    If Not Application.Intersect(Target, Range("N2:N756")) Is Nothing Then
        Cancel = True
        UserForm1.Show
    End If
End Sub

Before following your instruction above it was working ok, now when I double click in the column nothing happens, Any Ideas?

Thanks
David
 
Upvote 0
Hi Ihartono,
I tried unprotecting the whole worksheet to see if that was the problem, but the userform is still not showing so I have no idea what the problem is!

???
David
 
Upvote 0
Hi, All's working ok - got the right sequence of events in the end - Thanks for your help.

David
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top