Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am trying to run a macro when I select a new value from a list (set up
using data validation). Is there a way of doing this. The idea is to clear certain cell entries when I make a new selection on the data validation cell, so if there is another way without using a macro, that would be fine too. Is there a way to do this? Fiona |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Put a validation cell in B9 and the put the wollowing in Worksheet code:
Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, Range("B9")) Is Nothing Then Else Call mymac End If End Sub In a standard module put: Sub mymac() MsgBox ("mymac") End Sub -- Gary's Student "FionaR" wrote: I am trying to run a macro when I select a new value from a list (set up using data validation). Is there a way of doing this. The idea is to clear certain cell entries when I make a new selection on the data validation cell, so if there is another way without using a macro, that would be fine too. Is there a way to do this? Fiona |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank you very much.
Fiona "Gary''s Student" wrote: Put a validation cell in B9 and the put the wollowing in Worksheet code: Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, Range("B9")) Is Nothing Then Else Call mymac End If End Sub In a standard module put: Sub mymac() MsgBox ("mymac") End Sub -- Gary's Student "FionaR" wrote: I am trying to run a macro when I select a new value from a list (set up using data validation). Is there a way of doing this. The idea is to clear certain cell entries when I make a new selection on the data validation cell, so if there is another way without using a macro, that would be fine too. Is there a way to do this? Fiona |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You are very welcome!
-- Gary's Student "FionaR" wrote: Thank you very much. Fiona "Gary''s Student" wrote: Put a validation cell in B9 and the put the wollowing in Worksheet code: Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, Range("B9")) Is Nothing Then Else Call mymac End If End Sub In a standard module put: Sub mymac() MsgBox ("mymac") End Sub -- Gary's Student "FionaR" wrote: I am trying to run a macro when I select a new value from a list (set up using data validation). Is there a way of doing this. The idea is to clear certain cell entries when I make a new selection on the data validation cell, so if there is another way without using a macro, that would be fine too. Is there a way to do this? Fiona |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Automatic Update of Dropdown List Box data | Excel Worksheet Functions | |||
result of selecting from the dropdown list should be a dropdown list | Excel Worksheet Functions | |||
result of selecting from the dropdown list should be a dropdown list | Excel Worksheet Functions | |||
Data Validation - Dropdown List Not Appearing | Excel Discussion (Misc queries) | |||
List Running Horizontally-Pivot Table Possible? | Excel Discussion (Misc queries) |