Prevent User From Accessing Data After a Date

jencha

New Member
Joined
Nov 10, 2017
Messages
20
Hello All of you wonderfully helpful people-

I have a question for you.

We are trying to get our sales team to send us data on their accounts in Xcel via a template that we will be sending out, but we do not want the field to go back to this spreadsheet to use it for territory management. We will be sending out a template, they will be filling it out and sending it back to us and we will then analyze the data.

So, we would like to add macros that cut off access to the users after a specific date but allow us access to the data for analysis.

Or, maybe there is an easier way to do this...

It would be great if this would restrict cutting and pasting from the spreadsheet as well, but not necessary.

Thanks in Advance!

Jenny
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Easiest way would be to write a few lines of VBA code to move the data to a different sheet after a certain date/number of days, set it to very hidden and password protect the code so they can't get in there and change it to unhide it. This would allow the people who know the password to unhide the sheet and access the data.
 
Upvote 0
I'm pretty new to VBA. I am only experienced in copying and pasting haha... Do you know where I might find some references on this? Anyone really enjoy writing code and want to write this out for me? :)
 
Upvote 0
I'm pretty new to VBA. I am only experienced in copying and pasting haha... Do you know where I might find some references on this? Anyone really enjoy writing code and want to write this out for me? :)

So are you looking for it to be after a certain date for all of them or after a certain number of days past the initial date?
 
Upvote 0
Sure, testing it with a coworker by changing the date to 12/20/17 and it will not run because it says it's out of range... Would you mind running through the code and telling me how to read?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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