Thread: Clear formulae
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Mike[_73_] Mike[_73_] is offline
external usenet poster
 
Posts: 8
Default Clear formulae

"Stuart" wrote in message
...
Is there a simple way to clear formulae from the activesheet,

leaving
just the values in the cells ..... or do I have to do this cell by

cell eg:
setValue = ActiveCell.Value
ActiveCell = setValue

Regards.



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.674 / Virus Database: 436 - Release Date: 02/05/2004




Stuart,

From Excel you could Copy - Paste Special - Values. One way to do
this with code is:

Sub RemoveFormulas()
With ActiveSheet.UsedRange
.Copy
.PasteSpecial Paste:=xlPasteValues
End With
Application.CutCopyMode = False
End Sub



Hope this helps,

Mike