Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default copying all formulas, except sum

Thanks! It seems to work fine.

regards,
Hans
-----Original Message-----
Hans,

something like this should work:

Sub RemoveFormula()

Dim wk as worksheet
dim cl as range

for each wk in activeworkbook.worksheets
for each cl in wk.usedrange.cells

if left(cl.formula,5) < "=SUM(" then
cl.value = cl.value
end if

next cl
next wk

end sub

'Cheers, Pete.

-----Original Message-----
I was wondering if there is a relatively easy way to
convert all data in a spreadsheet to values, except the
SUM formulas.

We have a report that we need to send around every month
and it is made from a workbook that contains a lot of
lookup formulas and references to other workbooks,

sheets,
pivottables etc. What we did until now, is copying the
sheets we need and paste all the data to values. For

check
purposes, however, it would be better if we could keep

the
SUM formulas in the spreadsheets.

It concerns quite a lot of sheets and therefore I don't
want to make additional (simplified) spreadsheets that
would be easier to process in a macro.

Does anyone have any ideas how to tackle this?

Many thanks in advance for your help.

Hans
.

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying formulas tim2216 New Users to Excel 1 October 30th 07 01:00 PM
copying formulas mc Excel Worksheet Functions 2 October 29th 07 10:26 PM
Copying Formulas Bret B Excel Discussion (Misc queries) 3 October 24th 07 08:30 PM
copying formulas elsie Excel Worksheet Functions 1 April 3rd 07 03:50 AM
Copying Formulas Dan R. Excel Discussion (Misc queries) 3 January 11th 07 10:18 PM


All times are GMT +1. The time now is 09:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"