A Formula which writes to other cells

R

RIcky Nu

Is there a way to make a funciton write a value to another
cell, other that where the formula is placed? for example
if I writ ehte following function, and place it into cell
B1, with cell A1 as the parameter, I want the result to be
that when A1 = 1, a 1 is placed in C1. Thanks!


function write_result(input_value As Variant)
If input_value = 1 Then
Range("C1").Value = input_value
End If
End funciton
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top