lock more cells when excel opens in other computer

jackni

Board Regular
Joined
Feb 10, 2011
Messages
73
hi all

i'm wondering is it possible to do the following things
for example, i have 5 computers which name is "1","2"..."5"
when my excel(name, AAA) opens in these five computers, it will lock column A and column B and free all other areas, but when it opens in other computers, it will lock more areas, like lock column C and D.
so, i'm thinking, the solving steps is gonna like this:
first, vba code must get the computer name, if the name including in a list(like name 1,2,3-5), the restrict areas is much less, but when the file opens in other computer, the restrict areas will be much more.
is it possible?
some one help me, thank you very very very much!!!
 

Some videos you may like

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Watch MrExcel Video

Forum statistics

Threads
1,122,952
Messages
5,599,033
Members
414,275
Latest member
Pungie

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
Top