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

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.

Watch MrExcel Video

Forum statistics

Threads
1,127,093
Messages
5,622,666
Members
415,917
Latest member
kungsleden

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