Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Lambodar Eng.   on Aug 18 In MS Office Category.

  
Question Answered By: Wanda Patterson   on Aug 18

I hope I understand your question.
it seems that you should use the Offset property.
For example, you may have the following code:
....
'a range name "Base" is defined for a reference cell
dim col_offs as integer
dim val as variant
if cond1 then col_offs = 1
if cond2 then col_offs =2
if cond3 then col_offs = 3
....

val = range("Base").offset(col_offs, 0).value
....

Share: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Limited with IF Then Else Nesting Or get search suggestion and latest updates.


Tagged: