M
Motore
After to have created in a Form
Respectively the COMBO BOX1 and the COMBO BOX2:
where the COMBO BOX1 it reads from a list :
In which we have:
-Door
- window while
COMBO [BOX2 from type list:
[P1]
[P2]
[P3]
[F1]
[F2]
[F3]
Now when the [COMBO] [BOX1] = given on the [COMBO] [BOX2] has to appear
[P1]
[P2]
[P3]
While when [COMBO] [BOX1] = window on the [COMBO] [BOX2] has to appear me:
[F1]
[F2]
[F3]
I enclose code [VBA] for [EXCEL], while need to do for [VBA] [ACCESS].
Code for [VBA] [EXCEL]:
[SET] [PNG] = [SH]. [RANGE](" [E3], [E4]")
[WITH] me. [COMBOBOX2]
. [CLEAR]
[FOR] [EACH] [RCELL] in [PNG]. [CELLS]
. [ADDITEM] [RCELL]. [VALUE]
[NEXT] [RCELL]
. [LISTINDEX] = 0
[END] [WITH]
Thank you
Respectively the COMBO BOX1 and the COMBO BOX2:
where the COMBO BOX1 it reads from a list :
In which we have:
-Door
- window while
COMBO [BOX2 from type list:
[P1]
[P2]
[P3]
[F1]
[F2]
[F3]
Now when the [COMBO] [BOX1] = given on the [COMBO] [BOX2] has to appear
[P1]
[P2]
[P3]
While when [COMBO] [BOX1] = window on the [COMBO] [BOX2] has to appear me:
[F1]
[F2]
[F3]
I enclose code [VBA] for [EXCEL], while need to do for [VBA] [ACCESS].
Code for [VBA] [EXCEL]:
[SET] [PNG] = [SH]. [RANGE](" [E3], [E4]")
[WITH] me. [COMBOBOX2]
. [CLEAR]
[FOR] [EACH] [RCELL] in [PNG]. [CELLS]
. [ADDITEM] [RCELL]. [VALUE]
[NEXT] [RCELL]
. [LISTINDEX] = 0
[END] [WITH]
Thank you