Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Save Workbook In Values Only

Status
Not open for further replies.

risk99

Technical User
Mar 23, 2003
44
US
Hi, my workbook has about 30 sheets, and each sheet has lots of formula and links. I'd like to save the workbook for the other people to see the info only. Is there a way that I can just save as in values? I don't want to protect or hide any of the cells. Thanks!
 
Create a new workbook and play with PasteSpecial

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 

Hi,
Code:
    Dim ws As Worksheet
    For Each ws In Worksheets
      With ws
        .Cells.Copy
        .[A1].PasteSpecial xlPasteValues
      End With
    Next



Skip,
[sub]
[glasses] [red]Be advised:[/red] The dyslexic, agnostic, insomniac, lays awake all night wondering...
"Is there really a DOG?" [tongue][/sub]
 
Here's an "assist" on Skip's routine...

This will leave the data on each sheet in a "normal" mode - i.e. NOT with all the cells of each sheet selected. I expect you'll prefer this un-selected option for the end-user.

Sub ConvertFormulas_ToValues()
Dim ws As Worksheet
Application.ScreenUpdating = False
For Each ws In Worksheets
ws.Select
With ws
.Cells.Copy
.Cells.PasteSpecial xlPasteValues
.Cells(1, 1).Select
End With
Next
Sheets(1).Select
[a1].Select
Application.CutCopyMode = False
Application.ScreenUpdating = False
End Sub

Regards, Dale Watson
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top