Thread: If...then
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
David R. Duggan David R. Duggan is offline
external usenet poster
 
Posts: 2
Default If...then

I want to use the value in a named range to determine the action to take
when clicking on a command button.

The spreadsheet has range called "Location" based on a the location (city)
of the sales rep. When clicking on a command button, how can the button
direct the individual based on this value?

Something like:??

If Range("Location").Value = "Loc1" then
do this
Else
do this
End If

DRD