making all Sheets Values only

W

WhytheQ

Morning All,

Is this the quickest, and only way, of making all sheets in an
activeworkbook values only:

For Each mySheet In ActiveWorkbook.Worksheets
With mySheet
.Range("A1:BZ2000").Value = .Range
("A1:BZ2000").Value
End With
Next mySheet

Will it be quicker and take up less memory if I SET the activebook
into an object variable?

Any help appreciated
Jason.
 
P

Patrick Molloy

Sub valuizer()
Dim ws As Worksheet
For Each ws In Worksheets
With ws.UsedRange
.Value = .Value
End With
Next


End Sub

you can set calculation to manual and screen updatign ioff as well
 
W

WhytheQ

Sub valuizer()
Dim ws As Worksheet
For Each ws In Worksheets
    With ws.UsedRange
        .Value = .Value
    End With
Next

End Sub

you can set calculation to manual and screen updatign ioff as well









- Show quoted text -

Thanks Mr Malloy - I'll give it a go

Regards
Jason
 

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

Top