Memuat
Memuat
Login and Access Rights for vehicle garage
0 views
On open the user is asked for a password. Admin sees every sheet while staff only see Data and Dashboard.

Sensitive data is visible only to those who should see it.
The real project file is available. It is not just the picture above: you get the working file with every formula in place. It can be downloaded after payment, and we send the download link by WhatsApp or email.
ZIP: .xlsx workbook + VBA macro module (.zip)
| Cell | Formula | What it does |
|---|---|---|
| J3 | ="Peran aktif: "&J2 | Show the active user role. |
| J4 | =IF(J2="admin","Semua lembar","Data dan Dashboard") | Access scope by role. |
| J5 | =COUNTA(Data!B2:B61) | Rows available to the user. |
The macro module is delivered as a separate Modul_Makro.bas file inside the ZIP. Import it through Alt+F11. A short excerpt:
Private Sub Workbook_Open()
Dim pw As String, ws As Worksheet, admin As Boolean
pw = InputBox("Masukkan kata sandi:", "Login")
Select Case pw
Case "admin123": admin = True
Case "staf123": admin = False
Case Else
MsgBox "Kata sandi salah.", vbCritical
ThisWorkbook.Close SaveChanges:=False
Exit Sub
End Select
Sheets("Dashboard").Range("J2").Value = IIf(admin, "admin", "staf")
For Each ws In ThisWorkbook.Worksheets
If ws.Name = "Master" Or ws.Name = "Rekap" Then
ws.Visible = IIf(admin, xlSheetVisible, xlSheetVeryHidden)
End If
Next ws
Sheets("Dashboard").Activate
End SubColumns of the Data sheet:
| Service or Spare Part | Price |
|---|---|
| Motorbike Oil Change | 55,000 |
| Car Oil Change | 350,000 |
| Routine Motorbike Service | 90,000 |
| Car Tune Up | 450,000 |
| Front Brake Pad Replacement | 120,000 |
| Motorbike Tire Replacement | 250,000 |
| Car Battery Replacement | 900,000 |
| Spark Plug Replacement | 30,000 |
| Radiator Flush | 150,000 |
| Alignment and Balancing | 200,000 |
The sample data is synthetic.
Yes. The picture above is only a preview. After payment we send the download link of the real project file (a ZIP containing the .xlsx workbook and the macro module) by WhatsApp or email.
No. The sample data is synthetic and only shows how the formulas behave. Replace it with your own data and the formulas keep working.
Yes, as a separate order. Message us on WhatsApp with a short description of your columns and what you want to see.
Sample data is synthetic. Excel is a trademark of Microsoft Corporation.
Back to Excel portfolio