Is this possible in Excel?

Myke

New Member
Joined
Jan 23, 2003
Messages
39
Can you create a macro which results in the following. When you open a workbook you are prompted to enter a reference. If the person enters "2" and a reference, then the only thing they can amend is row 2. If they enter "3" then they can only amend row 3 and so on and so on.

Is this too much for Excel?? :confused:
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

onlyadrafter

Well-known Member
Joined
Aug 19, 2003
Messages
5,703
Platform
  1. Windows
Hello,

Put this code in the WORKBOOK CODE window, and see if it any good?

Code:
Private Sub Workbook_Open()
ENTRY = InputBox("USER?")
If ENTRY > 0 Then
    Sheets("Sheet1").Unprotect ("abc")
    Cells.Locked = True
    Rows(ENTRY).Select
    Selection.Locked = False
    Selection.FormulaHidden = False
End If
ActiveSheet.Protect ("abc")
End Sub
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,025
Messages
5,856,909
Members
431,837
Latest member
megantang

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