Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Mike R.
 
Posts: n/a
Default worksheet change and cases

Hello,
I am trying to use the worksheet_change with cases, but seem to be having
problems. I would like for various cases to run when the data in B8 changes.
I have 10 difference cases. Any help would be appreciated. Thank you in
advance.
Mike
  #2   Report Post  
Frank Kabel
 
Posts: n/a
Default

Hi
you may post your current code as describe what exact probelms you have

--
Regards
Frank Kabel
Frankfurt, Germany

Mike R. wrote:
Hello,
I am trying to use the worksheet_change with cases, but seem to be
having problems. I would like for various cases to run when the data
in B8 changes. I have 10 difference cases. Any help would be
appreciated. Thank you in advance.
Mike



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

Private Sub Worksheet_Change(ByVal Target As Range)

With Target
If .Address = "$B$8" Then
Select Case .Value
Case "value 1": 'action 1
Case "value 2": 'action 2
'etc.
End Select
End If
End With

End Sub


--
HTH

-------

Bob Phillips
"Mike R." wrote in message
...
Hello,
I am trying to use the worksheet_change with cases, but seem to be having
problems. I would like for various cases to run when the data in B8

changes.
I have 10 difference cases. Any help would be appreciated. Thank you in
advance.
Mike



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
change operating cells dynamically according to the value of a fixed cell Zuohong Excel Worksheet Functions 2 November 17th 04 08:11 AM


All times are GMT +1. The time now is 11:24 AM.

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"