Consulting

Results 1 to 3 of 3

Thread: Converting formulas to numbers

  1. #1

    Question Converting formulas to numbers

    Hi there Everyone! I have a workbook with many (20-30) worksheets and many numbers and formulas in different cellls (different rows and columns). Is there a code which could convert all the formulas in the workbook (on all worksheets) to numbers? It would take me a lot to copy and paste speciall all the workbooks...
    Thank you in advance for your help!

  2. #2
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    Try this in a standard module (AltF11+I+M)
    [VBA]Sub No_Formulas()
    Dim Sh As Worksheet
    For Each Sh In Sheets
    Sh.UsedRange.Value = Sh.UsedRange.Value
    Next Sh
    End Sub
    [/VBA]
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

  3. #3
    VBAX Regular
    Joined
    Feb 2009
    Posts
    9
    Location
    Another one:
    [VBA]
    Sub Formula_Zapper()
    Worksheets.Select
    Cells.Select
    Selection.Copy
    Selection.PasteSpecial Paste:=xlPasteValues
    ActiveSheet.Select
    Application.CutCopyMode = False
    End Sub

    [/VBA]

Posting Permissions

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