Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Go to cell based on input

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

--
Message posted via http://www.officekb.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 489
Default Go to cell based on input

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.
--
Cheers,
Ryan


"dazoloko via OfficeKB.com" wrote:

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

--
Message posted via http://www.officekb.com

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default Go to cell based on input

Thanks Ryan

Thats just the job.

D


Ryan H wrote:
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.
Hi all

[quoted text clipped - 8 lines]

D


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200912/1

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
Fill cell colour based on input in another cell Dan Wood[_2_] Excel Worksheet Functions 2 August 20th 09 06:28 AM
How to input pictures automatically based on cell input? bsharp Excel Worksheet Functions 9 May 30th 09 07:16 AM
run macro with input msg based on cell input Janelle S Excel Discussion (Misc queries) 0 January 20th 08 05:23 AM
email based on cell input gmw Excel Programming 1 February 3rd 06 05:39 PM
data validation to restrict input in cell based on value of cell above that cell NC Excel Programming 2 January 25th 05 07:11 AM


All times are GMT +1. The time now is 08:02 PM.

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

About Us

"It's about Microsoft Excel"