Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using the index function to find a value in a table and once I find this
value I need my macro to return the cell info one column beside it. eg. Offset(0,1) I am having a very hard time setting returning a range for cell because it is a variable. I am no programmer so could someone please get me on the right track. Thank you. outing = 1 For turn = 1 To 4 fpress = Application.Index(wksCopyBrake.Range("A3:IU20"), _ Application.Match(turn, wksCopyBrake.Range("A3:A20"), 0), _ Application.Match(outing, wksCopyBrake.Range("A3:IU3"), 0)) rngPasteBrake.Value = fpress rngPasteBrake.Font.Size = 8 This is where I need the "rpress" value which is always located Offset( 0,1) from "fpress" rngPasteRBrake.Value = rpress rngPasteRBrake.Font.Size = 8 Set rngPasteBrake = rngPasteBrake.Offset(0, 1) Set rngPasteRBrake = rngPasteRBrake.Offset(0, 1) Next turn Set rngPasteBrake = rngPasteBrake.Offset(1, -4) Set rngPasteRBrake = rngPasteRBrake.Offset(1, -4) outing = outing + 1 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I reference the same cell in all previous sheets? | Excel Discussion (Misc queries) | |||
How can I reference a cell on a previous worksheet | Excel Discussion (Misc queries) | |||
Reference Previous Worksheet Built-in Function | Excel Worksheet Functions | |||
reference to previous cell (always) | Excel Discussion (Misc queries) | |||
Now With Index -- IF Function Does Not Work With Cell Reference | Excel Worksheet Functions |