don't let the user disable macro's in Excel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I've made an Excel workbook with a lot of protection in it

ActiveSheet.EnableSelection = xlUnlockedCells doens't work when I use this code in VBA (Access)
But when I use it in Excel, it works
How can I disable the selection of excel cells in VBA code that creates an Excel sheet

thanks a lo

Filip
 
Hi
try
ActiveSheet.EnableSelection = 1

If you use this from Access the defined constant xlUnlockedCells is not
known
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top