Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel Selectively hiding data 1

Status
Not open for further replies.

dhookom

Programmer
Jun 24, 2003
22,497
US
This question is actually for a colleague (really!).

Let's assume we have a worksheet [Sales Data] with sales data for all sales people and then one or more other sheets with pivot tables for analyzing the sales data. My colleague would like to:
[ul]
[li]Filter the pivot tables for a particular salesperson[/li]
[li]Lock down the file so the filters can't be changed[/li]
[li]Email the locked down Excel file to the salesperson[/li]
[/ul]

The salesperson should not be able to see the [Sales Data] or pivot data for others.

Is there a recommended process for this? I suggest code that would delete the other salespersons' data, refresh the pivot tables, and save the file with a name that identifies the salesperson. Are there better alternatives that could be implemented with hiding, locking, etc?

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016
 
I would say:
[ul]
[li]Do what you want to the Excel file[/li]
[li]Save it as PDF[/li]
[li]Email PDF to the salesperson[/li]
[/ul]:)

Have fun.

---- Andy

There is a great need for a sarcasm font.
 
If you need fully functional excel file but "The salesperson should not be able to see the [Sales Data] or pivot data for others.", I would split raw data and workbook for the salesman.
The idea:
1. keep complete data in separate workbook (or admin workbook with complete data and pivot tables),
2. make a copy of the workbook, instead of [Sales Data} create link to complete admin data with filtered salesperson,
3. break link and refresh pivot tables in user's workbook.
If source data are in structured tables, there is no need to update rsize of source data range.


combo
 
Thanks combo. I think your suggestion meets all of the requirements.

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top