Thread: Interpret code
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Toppers Toppers is offline
external usenet poster
 
Posts: 4,339
Default Interpret code

R1C1 format as used below:

RC[-4] means the column 4 to the left of the cell M19 = I19
RC[-11] means the column 11 to the left of cell M19 = B19

The above are relative addresses i.e. offsets from M19 in this case


R6C3 means row 6 column 3 i.e C6 and is an absolute address ($C$6)

so M19 contains:

=IF(I19<0,B19,$C$6)

RC[1] means 1 column to the right of J19 i.e K19
RC[-1] means 1 column to the left i.e I19

So J19 contains:

=K19/I19

HTH

"FIRSTROUNDKO via OfficeKB.com" wrote:

HI,

can somebody please expalin in plain english what this lines of codes do

Worksheets(SheetNotification).Range("m" & 19).Value = "=IF(RC[-4]<0,RC[-11],
R6C3)"

Worksheets(SheetNotification).Range("j" & 19).Value = "=RC[1]/RC[-1]"

Thanks in Advance

Darren

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200603/1