Excel Macro Programming
Solved/Closed
DinamoCalypso
-
8 Feb 2010 à 10:00
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 8 Feb 2010 à 21:38
venkat1926 Posts 1863 Registration date Sunday 14 June 2009 Status Contributor Last seen 7 August 2021 - 8 Feb 2010 à 21:38
Related:
- Excel Macro Programming
- Excel mod apk for pc - Download - Spreadsheets
- Excel online macros - Guide
- Vat calculation excel - Guide
- Kernel for excel repair - Download - Backup and recovery
- How to run a macro in excel - Guide
1 response
venkat1926
Posts
1863
Registration date
Sunday 14 June 2009
Status
Contributor
Last seen
7 August 2021
811
8 Feb 2010 à 21:38
8 Feb 2010 à 21:38
in F4 you have validation list cookies, fries etc.
now right click the sheet tab and click view code
in the resulting window copy paste this event code
save the file
now go to F4 choose from the list and see what happens in L4
post back comments
the event code is
now right click the sheet tab and click view code
in the resulting window copy paste this event code
save the file
now go to F4 choose from the list and see what happens in L4
post back comments
the event code is
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address <> "$F$4" Then Exit Sub
Dim rf As Range, rl As Range
Set rf = Range("F4")
Set rl = Range("L4")
If rf = "cookies" Then rl = 41
If rf = "fries" Then rl = 47
If rf = "chocolate" Then rl = 42
If rf = "sex" Then rl = 45
If rf = "nooks" Then rl = 49
If rf = "computers" Then rl = 43
End Sub