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: 46
Default reference adjacent cells in formulae

I have a macro which loops till a criteria is met. I then want it to insert a
formulae using the two cells immediately to the left of the active cell. Then
it will continue to loop until the criteria is met again and the formula
again inserted. How can I get the macro to reference those cells to the left
in the same row. Below is what I currently have with a "?" being the row that
I am currently in. I have tried using "#" and a combination of Offsets
without much joy.
ActiveCell.Offset(0, 8).Select (being Column "I")
With Selection
.Formula = "=$G?-$H?"
End With
 
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
Add cells on two adjacent rows but non-adjacent columns Eve Excel Worksheet Functions 14 October 20th 09 02:32 AM
How to map cells to a reference then copy adjacent ones Dream Excel Discussion (Misc queries) 4 September 8th 09 08:37 AM
Set formulae to read the adjacent or next spreadsheet Jammings Excel Worksheet Functions 1 December 7th 08 04:54 AM
displaying adjacent cell when using max/min formulae formula428 Excel Worksheet Functions 7 November 1st 08 01:35 AM
How can I autofill a series to reference non adjacent cells? Microcell Excel Discussion (Misc queries) 1 June 30th 05 09:49 PM


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