Edit in Browser defeats code

Posted on 2012-09-07
Last Modified: 2012-09-10
Have a spreadsheet that I store on SharePoint that hides and unhides certain tabs for managers according to their logon ID because of salary info contained in them.  open in browser has now been enabled on sharpoint.  People choosing to do so are getting an error message and then the spreadsheet opens anywya without any code running and displaying the workbook according to how the previous manager openend it allowing the one manager to see another manager's salary info.  is there a way to fix this?
Question by:BigWill5112
    LVL 44

    Accepted Solution

    add code to the workbook_Close event, hiding all the sensitive worksheets and save the workbook.

    Author Comment

    duh!  Thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Suggested Solutions

    This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
    Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
    This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
    This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now