#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default row select

i have a workbook that has a Parameters page. Right now, all the information
shows no matter the selection on the Control page. I want to make it so
depending on the variable selected on the Control page, the Parameters just
shows items related to the selection.

Control -- user picks A

Parameters -- only display things related to A (which is a row of data)

If anyone could offer any help.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default row select

You could use the worksheet's selection change event to change a cell used by a VLOOKUP formula to
extract the data related to Parameters.

--
HTH,
Bernie
MS Excel MVP


"Monique" wrote in message
...
i have a workbook that has a Parameters page. Right now, all the information
shows no matter the selection on the Control page. I want to make it so
depending on the variable selected on the Control page, the Parameters just
shows items related to the selection.

Control -- user picks A

Parameters -- only display things related to A (which is a row of data)

If anyone could offer any help.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default row select

For display purposes, I only want to see that row on that page though. Is
that possible?

"Bernie Deitrick" wrote:

You could use the worksheet's selection change event to change a cell used by a VLOOKUP formula to
extract the data related to Parameters.

--
HTH,
Bernie
MS Excel MVP


"Monique" wrote in message
...
i have a workbook that has a Parameters page. Right now, all the information
shows no matter the selection on the Control page. I want to make it so
depending on the variable selected on the Control page, the Parameters just
shows items related to the selection.

Control -- user picks A

Parameters -- only display things related to A (which is a row of data)

If anyone could offer any help.

Thanks




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default row select

Moique,

Sure. Use the worksheet selection change event to feed the filter parameters to the autofilter for
that table, along the lines of this, placed into the worksheet's codemodule:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Cells.Count 1 Then Exit Sub
Range("B2:C8").AutoFilter Field:=1, Criteria1:=Target.Value
End Sub

HTH,
Bernie
MS Excel MVP


"Monique" wrote in message
...
For display purposes, I only want to see that row on that page though. Is
that possible?

"Bernie Deitrick" wrote:

You could use the worksheet's selection change event to change a cell used by a VLOOKUP formula
to
extract the data related to Parameters.

--
HTH,
Bernie
MS Excel MVP


"Monique" wrote in message
...
i have a workbook that has a Parameters page. Right now, all the information
shows no matter the selection on the Control page. I want to make it so
depending on the variable selected on the Control page, the Parameters just
shows items related to the selection.

Control -- user picks A

Parameters -- only display things related to A (which is a row of data)

If anyone could offer any help.

Thanks






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
VBA: Column Select then Data Select then return to cell A1 James C[_2_] Excel Discussion (Misc queries) 3 February 1st 10 11:35 AM
Macro to select cells without a certain value and select a menu it Guy[_2_] Excel Worksheet Functions 9 January 2nd 09 05:21 PM
Using formulas to select cells (Ex: Select every nth cell in a col Lakeview Photographic Services Excel Discussion (Misc queries) 2 March 15th 07 02:17 PM
In Excel 2000, How do you select the whole of a worksheet (Select. Rascal Excel Discussion (Misc queries) 1 March 5th 05 12:03 AM
Select other workbook to select data in a macro. T Tromp Excel Programming 2 September 19th 03 01:43 PM


All times are GMT +1. The time now is 01:12 AM.

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"