Formula for dropdown list
Solved/Closed
love2garv
Posts
11
Registration date
Wednesday 16 September 2009
Status
Member
Last seen
16 June 2011
-
8 May 2010 à 08:13
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 8 May 2010 à 08:44
rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 - 8 May 2010 à 08:44
Related:
- Formula for dropdown list
- Logitech formula vibration feedback wheel driver - Download - Drivers
- Amd crossfire gpu list - Guide
- Counter strike 1.6 cheats list - Guide
- Epic games free games list - Guide
- Lava mobile reset codes list ✓ - Phones, PDA & GPS Forum
1 response
rizvisa1
Posts
4478
Registration date
Thursday 28 January 2010
Status
Contributor
Last seen
5 May 2022
766
8 May 2010 à 08:44
8 May 2010 à 08:44
You would need to define event Worksheet_Change in the sheet where this drop down will be shown
Steps
1. Press ALT + F11
2. Press CTRL + R
3. Double click on the sheet where this calculation will occu
Steps
1. Press ALT + F11
2. Press CTRL + R
3. Double click on the sheet where this calculation will occu
Private Sub Worksheet_Change(ByVal Target As Range)
Dim myFormula As String
If Target.Column <> 2 Then Exit Sub
On Error GoTo End_Sub
Application.EnableEvents = False
Select Case Target
Case Is = "greecing"
myFormula = "=C" & Target.Row & " + 25000"
Case Is = "tyre change"
myFormula = ""
' other cases go here
Case Else
myFormula = ""
End Select
Target.Offset(0, 2).Formula = myFormula
End_Sub:
Application.EnableEvents = True
End Sub