LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Sorting and Filter in Multiple Sheets using Hyperlinks

Thanks Nigel,
It worked... and completely fulfilled my needs. I was wrting a code which
was working (through hyperlinks) though making my worksheet mad... Your
solution is simple and without any problems... thanks a lot...


--
Sheikh Saadi


"Nigel" wrote:

You need to apply an autofilter in sheet2, the filter would be set by the
selected CustID chosen on sheet1.

To make this happen use the before-double-click event on sheet1, see example
code below
..
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
' column of the CustID assumed to be 1 (col A)
Dim sCID As String
If Target.Column = 1 Then
sCID = Trim(Target.Value)

' set filter range for sheet 2 all orders data
With Sheets("Sheet2")
.Range("A1:F500").AutoFilter Field:=1, Criteria1:=sCID
.Activate
.Range("A1").Select
End With

End If
End Sub


--

Regards,
Nigel




"Sheikh Saadi" wrote in message
...
Hi,
I have an Excel Workbook containing multiple sheets.
Sheet1 contains my Customers data consisting CustID, CustName, CustAdd,
CustPhone etc.
Sheet2 contains Orders placed by customers consisting CustID, OrderID,
OrderDate etc.
I have CustID field common in both the sheets. Now I want that CustID in
Sheet1 gets hyperlinked with CustID field in Sheet2. Meaning, when I click
on
CUS0005 in Sheet1, it will jumps to Sheet2 and filter out the data only
for
CUS0005 in Sheet2.
I think this could be done. Plz tell me if I am making any sense.

Thanks,

--
Sheikh Saadi



 
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
Want to update hyperlinks through multiple sheets but can't Billznik Excel Worksheet Functions 1 February 28th 12 06:19 AM
Updating hyperlinks on multiple sheets ReneeSWB New Users to Excel 0 February 27th 12 08:34 PM
Filter Across Multiple Sheets Scott Halper Excel Worksheet Functions 1 January 22nd 08 05:04 PM
FILTER ONE MULTIPLE SHEETS ANDRIP Excel Worksheet Functions 1 March 15th 05 01:43 AM
PLEASE HELP!sorting data using auto filter & paste the results onto seperate sheets? Jay3 Excel Programming 1 November 12th 04 09:36 AM


All times are GMT +1. The time now is 08:36 AM.

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"