Atlantis764
New Member
- Joined
- Jan 10, 2022
- Messages
- 21
- Office Version
- 2019
- Platform
- Windows
Hello Team,
I need your support with the following problem:
- in cell A2 (sheet 1) I have a drop-down list from range A1:D1 (sheet 2)
- in cell B2 (sheet 1) is the description of the value of cell A2 (dependent drop-down list)
I managed to find a VBA code in other threads that will adjust the B2 cell height based on the content of the cell.
The drop-down list from column A is applied for the range A2:A10.
The problem that I have now is that I don't know how to apply the same code for all the cells from B2 to B10 (range B2:B10).
Could you help me with that?
Many thanks in advance!
I need your support with the following problem:
- in cell A2 (sheet 1) I have a drop-down list from range A1:D1 (sheet 2)
- in cell B2 (sheet 1) is the description of the value of cell A2 (dependent drop-down list)
I managed to find a VBA code in other threads that will adjust the B2 cell height based on the content of the cell.
The drop-down list from column A is applied for the range A2:A10.
The problem that I have now is that I don't know how to apply the same code for all the cells from B2 to B10 (range B2:B10).
Could you help me with that?
Many thanks in advance!
Test_17.11.2024.xlsm | ||||
---|---|---|---|---|
A | B | |||
1 | Category | Description | ||
2 | CO | Concediu de odihna | ||
3 | A2.3 | |||
4 | ||||
5 | ||||
6 | ||||
7 | ||||
8 | ||||
9 | ||||
10 | ||||
Sheet1 |
Cells with Data Validation | ||
---|---|---|
Cell | Allow | Criteria |
A2:A10 | List | =Sheet2!$A$1:$D$1 |
Test_17.11.2024.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | A2.1 | A2.2 | A2.3 | CO | ||
2 | A2.1 Organizarea procesului de elaborare a standardele de evaluare | A2.2 Achiziția serviciilor externalizate pentru analiză sistem, instruire/formare, suport tehnic, monitorizare, pilotare și validare a standardelor de evaluare | A2.3 Analiza sistemului educațional din perspectiva procesului de evaluare (realizare: plan-cadru al evaluărilor, metodologie elaborare, pilotare și validare standarde) pentru ciclul primar si cel gimnazial | Concediu de odihna | ||
Sheet2 |
VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A2")) Is Nothing Then Exit Sub
Select Case Target.Value
Case "A2.1"
Range("B2").WrapText = True
Range("B2") = "A2.1 Organizarea procesului de elaborare a standardele de evaluare"
Case "A2.2"
Range("B2").WrapText = True
Range("B2") = "A2.2 Achizitia serviciilor externalizate pentru analiza sistem, instruire/formare, suport tehnic, monitorizare, pilotare si validare a standardelor de evaluare"
Case "A2.3"
Range("B2").WrapText = True
Range("B2") = "A2.3 Analiza sistemului educational din perspectiva procesului de evaluare (realizare: plan-cadru al evaluarilor, metodologie elaborare, pilotare si validare standarde) pentru ciclul primar si cel gimnazial"
Case "CO"
Range("B2").WrapText = True
Range("B2") = "Concediu de odihna"
End Select
If Intersect(Target, Range("A3")) Is Nothing Then Exit Sub
Select Case Target.Value
Case "A2.1"
Range("B3").WrapText = True
Range("B3") = "A2.1 Organizarea procesului de elaborare a standardele de evaluare"
Case "A2.2"
Range("B3").WrapText = True
Range("B3") = "A2.2 Achizitia serviciilor externalizate pentru analiza sistem, instruire/formare, suport tehnic, monitorizare, pilotare si validare a standardelor de evaluare"
Case "A2.3"
Range("B3").WrapText = True
Range("B3") = "A2.3 Analiza sistemului educational din perspectiva procesului de evaluare (realizare: plan-cadru al evaluarilor, metodologie elaborare, pilotare si validare standarde) pentru ciclul primar si cel gimnazial"
Case "CO"
Range("B3").WrapText = True
Range("B3") = "Concediu de odihna"
End Select
End Sub