I have empty worksheet where I created a module with following
It was my belief that entering =ChangeValue() on A1 would be enough to change value on B5 to "Hello"
But instead cell focus simply move to B1 and doesn't do anything further
Number of searches on google turned up different way to phrase Range("B5").Value
such as Cell(2,5).value =
but it also simply move the cell focus to A2
What are some other troubleshooting steps? What's the correct way to change the content of specific cell?
The reason for using function is that I was passing a parameter into a function on a different problem but got stuck with a same problem where specified cell content wouldn't change.
Code:
Function ChangeValue()
Range("B5").Value = "Hello"
End Function
It was my belief that entering =ChangeValue() on A1 would be enough to change value on B5 to "Hello"
But instead cell focus simply move to B1 and doesn't do anything further
Number of searches on google turned up different way to phrase Range("B5").Value
such as Cell(2,5).value =
but it also simply move the cell focus to A2
What are some other troubleshooting steps? What's the correct way to change the content of specific cell?
The reason for using function is that I was passing a parameter into a function on a different problem but got stuck with a same problem where specified cell content wouldn't change.