Go to cell based on input

  • Thread starter dazoloko via OfficeKB.com
  • Start date
D

dazoloko via OfficeKB.com

Hi all

In hoping someone can help

I have a cell (c16) the user will input a 1 or a zero into.

If its a 1 i want cell (F16) to be selected or if its a 0 cell (C17) to be
selected.

Cheers in Advance

D
 
R

Ryan H

Put this code in the worksheet module.

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Address = "$C$16" Then
Select Case Target.Value
Case Is = "0": Range("C17").Select
Case Is = "1": Range("F16").Select
End Select
End If

End Sub

Hope this helps! If so, click "YES" below.
 
D

dazoloko via OfficeKB.com

Thanks Ryan

Thats just the job.

D


Ryan said:
Put this code in the worksheet module.

Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Address = "$C$16" Then
Select Case Target.Value
Case Is = "0": Range("C17").Select
Case Is = "1": Range("F16").Select
End Select
End If

End Sub

Hope this helps! If so, click "YES" below.
[quoted text clipped - 8 lines]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top