LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Cell reference from previous index function

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
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
How do I reference the same cell in all previous sheets? Joe Lewis[_2_] Excel Discussion (Misc queries) 3 November 24th 08 03:47 PM
How can I reference a cell on a previous worksheet Kim Excel Discussion (Misc queries) 3 August 18th 08 12:10 PM
Reference Previous Worksheet Built-in Function [email protected] Excel Worksheet Functions 1 July 6th 07 04:03 PM
reference to previous cell (always) Harvey Excel Discussion (Misc queries) 5 January 27th 07 12:02 AM
Now With Index -- IF Function Does Not Work With Cell Reference Gary Excel Worksheet Functions 2 June 26th 06 02:16 AM


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