Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Refer to current (not active) cells location?

Status
Not open for further replies.

jtb1492

Technical User
Mar 17, 2005
25
US
So I am writing a function. I want the value of the function to depend on the Row/Column location of cell in which the formula is being evaluated (so if I put = MyFunct() in cell C4 I want the returned value to depend on 3 and 4)

I know I could use row() and colun() as arguments to the function, but this seems like a not-so-elegant solution.

For a minute I though that ActiveCell.Row would be the answer, but then I realized that it's not...

Thanks for the help, guys. (In case it's not clear, I JUST started trying to use VBA)
 
Hi,

Are you in Access? Your terminology sounds like Excel to me.

Skip,

[glasses] [red]Be advised:[/red] When you ignite a firecracker in a bowl of vanilla, chocolate & strawberry ice cream, you get...
Neopolitan Blownapart! [tongue]


 
Haha...oops...as you can tell I can't read forum titles either...thanks
 
You might want Forum707 VBA

Skip,

[glasses] [red]Be advised:[/red] When you ignite a firecracker in a bowl of vanilla, chocolate & strawberry ice cream, you get...
Neopolitan Blownapart! [tongue]


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top