LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 73
Default Absolute Reference to the Left Until Change in Row

I am aware of a few ways to reference a cell to the left of the active cell,
such as:
=INDIRECT("RC[-1]",0)
=OFFSET(B1,-1,0)

I am curious to know if there is a way to link to this cell as an absolute
reference, such as being in cell B1, and referencing $A$1, and then moving
down to the next cell, by means of:
ActiveCell.Offset(1, 0).Select

€¦and continuing in this fashion while checking values in Column A:
If ActiveCell.Offset(0, -1) = ActiveCell.Offset(-1, 1) Then
€˜do stuff here =INDIRECT("RC[-1]",0)
€˜do stuff here =OFFSET(B1,-1,0)

If ActiveCell.Offset(0, -1) < ActiveCell.Offset(-1, 1) Then
€˜ stop the OFFSET function or INDIRECT function, and make new absolute
reference to left of the currently active cell.


I am having a difficult time getting the getting the absolute reference to
stick in VBA, and then getting it to return to a relative reference when:
Offset(0, -1) < Offset(-1, 1)


Does anyone have any ideas about this?

Thanks a bunch!
Ryan--

 
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
Shortcut to change change cell reference to Absolute reference? richk Excel Worksheet Functions 12 December 5th 09 12:24 AM
How do I change the default cell reference from absolute to relati JZing Setting up and Configuration of Excel 3 July 19th 06 01:03 AM
HOw do I change group of cells from absolute reference? bre New Users to Excel 3 September 25th 05 03:21 AM
How to change the right-to-left worksheet to left-to-right workshe RAMA Excel Discussion (Misc queries) 1 July 4th 05 01:57 PM
How do I change a cell from absolute reference to relative referen simonsez Excel Discussion (Misc queries) 1 May 17th 05 08:39 PM


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