Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Code - different Worksheet

Hi
you need a event procedure for this. Enter the following in your
worksheet module of the first sheet (assumption cell A1 is the cell you
enter your data)

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
If Intersect(Target, Me.Range("A1")) Is Nothing Then Exit Sub
On Error GoTo CleanUp:
With Target
if .value <"" then
Application.EnableEvents = false
worksheets(.value).activate
end if
End With
CleanUp:
Application.EnableEvents = True
End Sub


--
Regards
Frank Kabel
Frankfurt, Germany

tennec wrote:
I would love some assistance in writing some code that would look at
the data entered(three choices) in a cell that would then go to one
of three different worksheets. For example, if "A" is entered in a
cell, then this would take you to worksheet "A". Thank you.


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
Help with worksheet code Richard Excel Worksheet Functions 7 March 13th 08 02:31 PM
worksheet code Rod Excel Discussion (Misc queries) 11 January 6th 08 08:53 PM
Worksheet Code Kerry Excel Discussion (Misc queries) 4 December 19th 07 04:01 AM
Need Worksheet Code jacob Excel Worksheet Functions 3 March 17th 06 07:48 PM
worksheet code nowfal Excel Discussion (Misc queries) 1 August 19th 05 08:25 PM


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