Excel Macro Programming
Solved/Closed
DinamoCalypso
-
Feb 8, 2010 at 10:00 AM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Feb 8, 2010 at 09:38 PM
venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 - Feb 8, 2010 at 09:38 PM
Related:
- Excel Macro Programming
- Spell number in excel without macro - Guide
- R programming language download - Download - Programming languages
- Excel mod apk for pc - Download - Spreadsheets
- Excel marksheet - Guide
- Kernel for excel - Download - Backup and recovery
1 response
venkat1926
Posts
1863
Registration date
Sunday June 14, 2009
Status
Contributor
Last seen
August 7, 2021
811
Feb 8, 2010 at 09:38 PM
Feb 8, 2010 at 09:38 PM
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