+ Reply to Thread
Results 1 to 3 of 3

Thread: Save as file as only text value

  1. #1
    Registered User
    Join Date
    09-19-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    48

    Save as file as only text value

    Hi
    I have an excel file with several sheets linked to each other and even linked with another file. When I would 'Save it as' a different file I need only the values and not the links or formula. However, while I would just 'Save' the file it should keep the originality.

    Can anybody help me with some code please?

    Thanks

    Pal

  2. #2
    Registered User
    Join Date
    01-21-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Save as file as only text value

    Before saving try to select all cells and paste special (in the same place) as values.

  3. #3
    Valued Forum Contributor
    Join Date
    03-13-2004
    Location
    Gothenburg/Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and reluctantly Excel 2007
    Posts
    631

    Re: Save as file as only text value

    Adding to ExcelIsEasy's solution and since you has several sheets in your file I would recommend doing it with a macro.

    Perhaps something like this:

    Option Explicit
    
    Sub Convert_toValue()
    
    Dim i As Integer
    
    For i = 1 To Sheets.Count
    
    Sheets(i).Activate
    
    With ActiveSheet
    
        .UsedRange.Copy
        
            .UsedRange.PasteSpecial Paste:=xlPasteValues
         
        Application.CutCopyMode = False
        
    End With
    
    Next i
    
    End Sub
    Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0