LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How can I assign a macro to each name in a drop down list


I used a combination of both of your codes and it works well. Thanks fo
your help.

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$G$9" Then
Select Case Target.Value
Case "CO Wage"
COWage 'run COWage macro
Case "AZ Wage"
AZWage 'run AZWage macro
Case Else
MsgBox Target.Value & " Caused an error"
End Select
End If
End Su

--
mgmcdevit
-----------------------------------------------------------------------
mgmcdevitt's Profile: http://www.excelforum.com/member.php...fo&userid=2659
View this thread: http://www.excelforum.com/showthread.php?threadid=46694

 
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
Run macro from drop list Jeze77 Excel Discussion (Misc queries) 0 April 6th 06 05:23 PM
How do I assign a set of values to a selection from a drop list? Mike Bach New Users to Excel 1 March 7th 06 08:10 PM
Assign macro to each item of a drop-down list or combo box - how? jbp20717[_3_] Excel Programming 1 July 27th 05 11:17 AM
Can I assign a macro to each item in a drop-down list? jbp20717 Excel Programming 5 July 4th 05 01:38 PM
Assign values to names in a drop-down list? Barry L Excel Discussion (Misc queries) 3 March 8th 05 04:21 PM


All times are GMT +1. The time now is 03:26 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"