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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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
 
Upvote 0

Forum statistics

Threads
1,214,522
Messages
6,120,020
Members
448,939
Latest member
Leon Leenders

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