Big question....

Meinders

New Member
Joined
Jul 23, 2010
Messages
3
Is it possible for a user on a shared excel document to run a macro that would:

1. Examine 2 cells, A1 and B1 for simplicity. The options for A1 are limited to a range named "Names", and the options for B1 are limited to a range named "Workbooks". Both of these ranges are dynamic.
2. Run a search through an array "Names":"Workbooks" if this combination is marked blank. If it is not, stop the process and alert the user someone else is using that combination (the person's name using it will be the contents of the intersection), otherwise continue.
3. Change the cell (in the grid checked in the previous step) to the contents of C1 and insert the time into cell D1
4. Open a new workbook, named from the contents of cell A1
5. Into this new workbook, copy from a different workbook (named from B1), the worksheet named the same as what's in cell A1

So what we have is a user with a new workbook(named from A1) with worksheet with the same name (from A1), copied from workbook B1. The user will be able to edit that worksheet, then when finished run a macro on the original shared document that:

1. Copy the new worksheet back into the original workbook it came from, (B1) replacing the one it had copied in step 5 of above.
2. Delete the new workbook from the user's computer
3. Delete the previous marking in the array of "Names":"Workbook" leaving it blank and enter the time in E1


Essentially what I'm an trying to do is create a way for people to "check out" worksheets from a few different large workbooks. I want to know when that worksheet was "checked out" and when it was "checked out". I also don't want several people checking out the same worksheet at the same time.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Forum statistics

Threads
1,214,864
Messages
6,121,981
Members
449,058
Latest member
oculus

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