- How can I copy paste cell values only?

  • Thread starter Thread starter Don Guillett
  • Start date Start date
I have a macro that manipulates excel data copy-pasted from several Excel
2000 documents. Is there a way to make sure that Selection.Copy copies just
cell values ignoring all other cell properties (formulas, formatting,...)?
 
Workbooks.Open("c:\SourceFile1.xls")
Workbooks.Open("c:\SourceFile2.xls")
Workbooks.Open("c:\SourceFile3.xls")

Workbooks.Add

Workbooks(1).Worksheets(1).Range("F3:AC38").Copy
Workbooks(4).Worksheets(1).Paste

Workbooks(2).Worksheets(1).Range("F39:AC76").Copy
Workbooks(4).Worksheets(2).Paste

Workbooks(3).Worksheets(1).Range("F77:AC115").Copy
Workbooks(4).Worksheets(3).Paste

How can the above be modified so that Range.Copy picks up just the values of
selected cells?
 
Thanks. Help did help :)

Don Guillett said:
Use Paste PasteSpecial (look in HELP)

--
Don Guillett
SalesAid Software
(e-mail address removed)
values
 

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