Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how do you create drill-down detail?

I have a summary sheet and what to click on cell and see detail from another
sheet. Can this be done?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default how do you create drill-down detail?

Yes that can be done but it is a bit of work... In general here is what you
want to do. Add named ranges to your Summary sheet. We are going to check if
the user double clicks anywhere withing the named range. Then based on what
named range they double click on will dictate what sheet they will be
navigated too. Here is some sample code for you . It does not use named
ranges but I do highly recommend you use named ranges as they will make the
code easier to read and it will make things easier to modify if your summary
sheet changes... This code works on a new book. Place this code into Sheet1
(right click on the tab and select view code. paste the following. If you
double click in either B1:Z5 or B6:Z10 you will be navigated to one of the
other sheets...

Option Explicit

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
With Sheets("Sheet1")
If Not Intersect(Target, .Range("B1:Z5")) Is Nothing Then
Cancel = True
Sheets("Sheet2").Select
ElseIf Not Intersect(Target, .Range("B6:Z10")) Is Nothing Then
Cancel = True
Sheets("Sheet3").Select
End If
End With
End Sub

--
HTH...

Jim Thomlinson


"Sandroid" wrote:

I have a summary sheet and what to click on cell and see detail from another
sheet. Can this be done?

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
create pivot table with master/detail data from 2 worksheets BarbaraT Excel Worksheet Functions 0 April 17th 06 11:31 PM
How to create drill down scope form? jhnagle Excel Programming 0 October 26th 05 05:58 PM
create detail from summary data hvibberts25 Excel Programming 0 August 4th 05 06:57 PM
how to see complete memo field in pivot table drill down detail manu123 Excel Programming 0 March 9th 05 05:51 PM
Show one total summary but have drill down to detail Kharpo7 Excel Discussion (Misc queries) 1 December 20th 04 04:50 PM


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