LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default run macro on data validation cell change...

I have a cell, A211, I set the value of using the data validation technique
to choose one of two possible choices:
Macro or Print.

As it is now, I have to click on the data validation cell and make a choice,
then I click a control to run this macro:

Sub Print6()

'

Dim Choice As String



Sheets("Multiple Charts").Select

Choice = Range("A211")



ActiveSheet.ChartObjects("Chart 935").Activate

ActiveChart.ChartArea.Select

ActiveWindow.Visible = False

If Choice = "Macro" Then

Selection.OnAction = "Six"

ElseIf Choice = "Print" Then

Selection.OnAction = ""

End If

Range("A206").Select

End Sub



Could someone advise me on what code I might add to cause this macro to
execute it based on a change in A211, changes made via the pulldown of
choices it presents when the cell is selected?



As it is now, I perform the two steps separately.



My thanks in advance for any ideas!



Cheers! Brad




 
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
Validation Data using Validation Table cell range..... Dermot Excel Discussion (Misc queries) 16 January 5th 10 09:35 PM
How to use a macro to change the selected item in data validation Niki Excel Discussion (Misc queries) 8 May 24th 07 12:18 PM
How does Data Validation change with a formula change? MayClarkOriginals Excel Worksheet Functions 3 July 5th 06 04:50 AM
Change/cycle cell entry to next option from validation list (macro Neil Goldwasser Excel Programming 0 January 25th 06 07:58 PM
monitor cell that uses data validation list for change rgarber50 Excel Discussion (Misc queries) 2 August 1st 05 06:15 AM


All times are GMT +1. The time now is 10:06 PM.

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

About Us

"It's about Microsoft Excel"