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

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
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,035
Messages
6,122,791
Members
449,095
Latest member
m_smith_solihull

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