Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default making all Sheets Values only

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default making all Sheets Values only

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



"WhytheQ" wrote:

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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 246
Default making all Sheets Values only

On 17 Sep, 13:25, Patrick Molloy
wrote:
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



"WhytheQ" wrote:
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.- Hide quoted text -


- Show quoted text -


Thanks Mr Malloy - I'll give it a go

Regards
Jason
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
making changes to existing sheets zeerog New Users to Excel 2 January 2nd 07 11:52 AM
making changes to all sheets in a workbook Wayne Cameron Excel Discussion (Misc queries) 2 January 20th 06 04:56 AM
Making sheets with a macro JamesJordan Excel Programming 2 January 12th 06 03:20 PM
Making sheets visible / hidden Xlyr Excel Programming 1 March 6th 05 07:45 PM
Making a function available in all sheets George Andrews Excel Programming 1 February 6th 04 11:16 PM


All times are GMT +1. The time now is 04:46 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"