LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default Drop-down menu and additional sheets


--
DBW


"Gord Dibben" wrote:

Assumptions for this example..................

You have 10 sheets. You have 10 categories.

Place category items in D1:D10

Place sheet names in E1:E10

DV dropdown in A1 using D1:D10 as source range.

Right-click on the sheet tab and copy/paste this code into that module.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim isht As Worksheet
Dim R As Range

Set R = Range("A1")
If Intersect(Target, R) Is Nothing Then Exit Sub

If Not IsError(Application.Match(Target.Value, _
Me.Range("D1:D10"), 0)) Then

isht = Application.VLookup(Target.Value, _
Me.Range("D1:E10"), 2, False)

Sheets(isht).Select
End If
End Sub

Pick a category from A1 to select a sheet.


Gord


On Fri, 6 Mar 2009 06:04:01 -0800, Willco3
wrote:

Each category is linked to one sheet and you would like that
sheet to be activated for completion once a category is selected from the
drop-down menu.


Thank you - I'll try it.



 
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
Drop Down choice needs to lead to another drop down menu Hudson Excel Discussion (Misc queries) 1 January 9th 09 12:36 AM
Drop dwn menu. Formula to count selection frm menu in anoth cell? ggoldber Excel Worksheet Functions 1 June 4th 08 02:21 PM
Drop down menu and validation over mulitiple sheets NFaye Excel Worksheet Functions 4 January 24th 08 10:12 PM
filter dropdown menu so 2nd drop menu is customized menugal Excel Worksheet Functions 1 September 4th 07 05:25 PM
Cross-referenced drop-down menu (nested drop-downs?) creativeops Excel Worksheet Functions 4 November 22nd 05 05:41 PM


All times are GMT +1. The time now is 11:55 PM.

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"