Assigning values from source cells

  • Thread starter Thread starter Asif
  • Start date Start date
A

Asif

I'm trying to assign value from Source cells into the destionation cell using
following statements.

dCell.Value = sCell.Value

Is it possible to assign value in destination cells without using multiple
copy-paste?
 
If you create a Range object you can assign a string value to it
directly, and all the cells in the range will take on that value.

Dim rng as Excel.Range
Dim myval As String
Set rng = Range("A1:A10")
myval = "Do it!"
rng.Value = myval


HTH,
JP
 

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

Back
Top