copying data from one wb to another

G

Gary Keramidas

i am wondering why this doesn't work

this copies one cell just fine:
With Workbooks(fname).Worksheets("data")
Range("c4").Value = .Range("c4")
End With

this copies one cell to the range in c:
With Workbooks(fname).Worksheets("data")
Range("c4:C9").Value = .Range("c4")
End With

this does nothing. i was trying to streamline the copying process, but this
doesn't work. how would i do this?
With Workbooks(fname).Worksheets("data")
Range("c4:C9").Value = .Range("c4:c9")
End With
 
N

Nigel

With Workbooks(fname).Worksheets("data")
.Range("C4:C9").Copy Destination:= Range("C4")
End With
 
B

Bob Phillips

Hi Gary,

Use Copy

With Workbooks(fname).Worksheets("data")
Range("C4:C9").Copy .Range("c4")
End With


--

HTH

RP
(remove nothere from the email address if mailing direct)
 

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