A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Data validation



 
 
Thread Tools Display Modes
  #1  
Old August 16th, 2006, 03:11 PM posted to microsoft.public.excel.misc
Bill
external usenet poster
 
Posts: 1,009
Default Data validation

I have a validation list on sheet 1 and I need the selection from that list
to take me to sheet 2 or sheet 3
--
Bill
  #2  
Old August 16th, 2006, 03:55 PM posted to microsoft.public.excel.misc
Marcelo
external usenet poster
 
Posts: 981
Default Data validation

Hi Bill,

you can't, a list for data validation porpose must be on the same sheet

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Bill" escreveu:

I have a validation list on sheet 1 and I need the selection from that list
to take me to sheet 2 or sheet 3
--
Bill

  #3  
Old August 16th, 2006, 04:31 PM posted to microsoft.public.excel.misc
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Data validation

Unless you get that range a workbook level name:
http://www.contextures.com/xlDataVal01.html#Name
(from Debra Dalgleish's site)



Marcelo wrote:

Hi Bill,

you can't, a list for data validation porpose must be on the same sheet

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo

"Bill" escreveu:

I have a validation list on sheet 1 and I need the selection from that list
to take me to sheet 2 or sheet 3
--
Bill


--

Dave Peterson
  #4  
Old August 16th, 2006, 04:39 PM posted to microsoft.public.excel.misc
Bill
external usenet poster
 
Posts: 1,009
Default Data validation

Can I do it with a button if I get my selection from the data validation
list, if so how
--
Bill


"Marcelo" wrote:

Hi Bill,

you can't, a list for data validation porpose must be on the same sheet

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Bill" escreveu:

I have a validation list on sheet 1 and I need the selection from that list
to take me to sheet 2 or sheet 3
--
Bill

  #5  
Old August 16th, 2006, 04:40 PM posted to microsoft.public.excel.misc
Gord Dibben
external usenet poster
 
Posts: 20,252
Default Data validation

Bill

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Me.Range("A1")) Is Nothing Then Exit Sub
On Error GoTo endit
Application.EnableEvents = False
Select Case Target.Value
Case "1"
Sheets("Sheet1").Select
Case "2"
Sheets("Sheet2").Select
End Select
endit:
Application.EnableEvents = True
End Sub

This is sheet event code.

Right-click on the sheet tab and "View Code". Copy and paste into that module.

Adjust range and parameters to suit.


Gord Dibben MS Excel MVP

On Wed, 16 Aug 2006 07:11:02 -0700, Bill wrote:

I have a validation list on sheet 1 and I need the selection from that list
to take me to sheet 2 or sheet 3


  #6  
Old August 16th, 2006, 05:19 PM posted to microsoft.public.excel.misc
Dave Peterson
external usenet poster
 
Posts: 19,791
Default Data validation

Or even just a =hyperlink() formula in an adjacent cell:

=IF(A1="","",
HYPERLINK("#"&CELL("address",INDIRECT("'" & A1 &"'!x99")),"Click me"))

Will take you to x99 of the worksheet that's in A1.

Bill wrote:

Can I do it with a button if I get my selection from the data validation
list, if so how
--
Bill

"Marcelo" wrote:

Hi Bill,

you can't, a list for data validation porpose must be on the same sheet

hth
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo



"Bill" escreveu:

I have a validation list on sheet 1 and I need the selection from that list
to take me to sheet 2 or sheet 3
--
Bill


--

Dave Peterson
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:24 PM.


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