Hiding data validation drop downs

JimM

Well-known Member
Joined
Nov 11, 2003
Messages
741
We use a spreadsheet at work that has data validation in certain cells, one of these cells is a list of suppliers.

Is there a way we can lock or hide the data validation dropdown so that when we send the sheet to an external party they can not see the other suppliers should they click in the cell.

Guessing the answer is to write some code to remove the data validation on all cells once the spreadsheet is populated but just want to check there's not something already inbuilt into Excel

Cheers

Jim
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Don't think it's built in.

I've used code similar to this in the past

Code:
Sub removeValidation()
    For Each sht In Worksheets
        sht.Cells.Validation.Delete
    Next sht
End Sub

You should probably tailor it to delete any sheets you're using to store validation lists also.
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,757
Members
449,094
Latest member
dsharae57

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