Restricting use of a file

tec4eastlake

New Member
Joined
Apr 30, 2019
Messages
1
I have a report that I generate weekly. Our users (about 15 or 16) go into the report and add accounting details. Over the last few months, data has been damaged by users dragging their data down and sometimes over the data entered by other users.

I would like to create an AutoOpen macro that looks at the current user's Windows login, and based on that, filters the data so that people can only enter their info into their section of the database.

Not having any issues with getting the login and running it against a case statement to get the units they work for. What I'm not sure about is filtering the data down and then "locking" it so that they can't play with the filtering. I downloaded a spreadsheet from a site (can't remember the name, sorry) that shows how filtering works in VBA. It's the "freezing" part I'm having issues with. The spreadsheet is shared, so I'm not so much worried about other users seeing data that's not theirs -- the macro being AutoOpen should handle that.

Any insights or code you might have would be greatly appreciated.

Janet
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
VBA could
- prevent users from meddling in original sheet
- copy "their" rows into a temporary sheet for them to add "their" accounting data
- update the original sheet
- delete temporary sheet

Which column determines which rows belong to whom?
 
Upvote 0

Forum statistics

Threads
1,214,419
Messages
6,119,389
Members
448,891
Latest member
tpierce

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