PDA

View Full Version : Solved: copying cell value only when calculated from formula



ericr
04-03-2008, 08:43 AM
Well, as the title suggests, I'm trying to copy just the calculated value from a cell in one workbook to another workbook. This new workbook does not have the other values used by the formula to calculate the value. Is there a way to do this?

Thanks.

mdmackillop
04-03-2008, 10:28 AM
Sub DoCopy()
Workbooks("Book1.xls").Sheets(1).Range("A1").Copy
Workbooks("Book2.xls").Sheets(1).Range("A1").PasteSpecial xlValues
End Sub

ericr
04-03-2008, 10:51 AM
Thanks!