PC Review


Reply
Thread Tools Rate Thread

Copy just the values

 
 
Jaz
Guest
Posts: n/a
 
      13th Mar 2007
I have a excel spreadsheet that has a formula for each cell. Is there a way
to copy just the results and past them into a new worksheet? That way, it
doesn't have to reference and formulas or workbooks?

Thanks,
Jasper


 
Reply With Quote
 
 
 
 
Ron de Bruin
Guest
Posts: n/a
 
      13th Mar 2007
Hi Jaz

Worksheet or workbook ?

You can copy for example the activesheet in a new workbook and change the formulas to values

Manual
Copy the cells and use Edit>PasteSpecial...values on the new sheet


Or with code


Dim Destwb As Workbook

ActiveSheet.Copy
Set Destwb = ActiveWorkbook

'Change all cells in the worksheet to values
With Destwb.Sheets(1).UsedRange
.Cells.Copy
.Cells.PasteSpecial xlPasteValues
.Cells(1).Select
End With
Application.CutCopyMode = False

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Jaz" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
>I have a excel spreadsheet that has a formula for each cell. Is there a way
> to copy just the results and past them into a new worksheet? That way, it
> doesn't have to reference and formulas or workbooks?
>
> Thanks,
> Jasper
>
>

 
Reply With Quote
 
Jaz
Guest
Posts: n/a
 
      14th Mar 2007
THANKS!!!
"Ron de Bruin" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Jaz
>
> Worksheet or workbook ?
>
> You can copy for example the activesheet in a new workbook and change the

formulas to values
>
> Manual
> Copy the cells and use Edit>PasteSpecial...values on the new sheet
>
>
> Or with code
>
>
> Dim Destwb As Workbook
>
> ActiveSheet.Copy
> Set Destwb = ActiveWorkbook
>
> 'Change all cells in the worksheet to values
> With Destwb.Sheets(1).UsedRange
> .Cells.Copy
> .Cells.PasteSpecial xlPasteValues
> .Cells(1).Select
> End With
> Application.CutCopyMode = False
>
> --
>
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm
>
>
> "Jaz" <(E-Mail Removed)> wrote in message

news:(E-Mail Removed)...
> >I have a excel spreadsheet that has a formula for each cell. Is there a

way
> > to copy just the results and past them into a new worksheet? That way,

it
> > doesn't have to reference and formulas or workbooks?
> >
> > Thanks,
> > Jasper
> >
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel2007: copying filtered table values, how can I copy ONLY thefiltered values AC Microsoft Excel Discussion 2 27th Nov 2009 09:27 PM
copy unique values into listbox, then modify sheet from these values Matthew Dyer Microsoft Excel Programming 4 28th Sep 2009 04:11 PM
Find matching values, copy/paste values as well as values in ColA ryguy7272 Microsoft Excel Programming 2 28th Sep 2009 06:20 AM
Copy/Paste how to avoid the copy of formula cells w/o calc values =?Utf-8?B?RGVubmlz?= Microsoft Excel Misc 10 2nd Mar 2006 10:47 PM
How do i compare values from two sheet and copy & paste if values match? =?Utf-8?B?cm96Yg==?= Microsoft Excel Programming 0 5th Mar 2004 12:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:23 AM.