VB excel help needed

A

AB

Perhaps the description of what actually needs to be done could be a
bit better but from what you've posted - something like this could be
a start:

Sub PutOneCellValueIntoAnother()
Dim rngTarget as Range
'Here it's assumed that your d(n) is Range("A1") and your r(n) is
Range("A2").

Set rngTarget = Range("A1")

if rngTarget.value="" then rngTarget.value=Range("A2").value

End Sub

But as above - you'd need to describe better what you actually need to
get more meaningfull advices here.
 

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