Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Running Macros by selecting from a dropdown list

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Running Macros by selecting from a dropdown list

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Running Macros by selecting from a dropdown list

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Running Macros by selecting from a dropdown list

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatic Update of Dropdown List Box data Rajat Excel Worksheet Functions 4 March 8th 12 05:09 PM
result of selecting from the dropdown list should be a dropdown list No News Excel Worksheet Functions 0 July 5th 06 04:09 PM
result of selecting from the dropdown list should be a dropdown list No News Excel Worksheet Functions 2 July 1st 06 10:53 AM
Data Validation - Dropdown List Not Appearing MWS Excel Discussion (Misc queries) 2 April 25th 05 05:05 PM
List Running Horizontally-Pivot Table Possible? Jugglertwo Excel Discussion (Misc queries) 3 December 24th 04 05:29 AM


All times are GMT +1. The time now is 08:32 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"