Share via

Macro code to convert formula cells into values for all tabs

Anonymous
2020-08-06T02:34:23+00:00

Hi,

I have a large file of 450 MB with 15 to 20 tabs.

Each tabs is a table link to a data page.

Is there any Macro code that could convert all the formula cells into values keeping all the formatting in the shortest possible time ?

Thank you in advance.

Low

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2020-08-07T04:47:29+00:00

    Hi Hans,

    Many thanks.

    You macro codes work very well.

    Low

    Was this answer helpful?

    0 comments No comments
  2. HansV 462.6K Reputation points
    2020-08-06T06:34:52+00:00

    Here is such a macro:

    Sub Formulas2Values()

        Dim wsh As Worksheet

        For Each wsh In Worksheets

            With wsh.UsedRange

                .Value = .Value

            End With

        Next wsh

    End Sub

    Was this answer helpful?

    0 comments No comments