+ Reply to Thread
Results 1 to 4 of 4

Macro to Convert formulas to Values - Speed

  1. #1
    Registered User
    Join Date
    04-28-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    61

    Macro to Convert formulas to Values - Speed

    Is this macro to convert formulas to values the quickest way to go about it.

    Sub ConvertFormulasIntoValues()

    Application.ScreenUpdating = False
    Sheets("Sheet1").Select
    Dim rng As Range
    Dim formulaCell As Range
    Set rng = Range("D9:D9000")

    'Check each cell in the range if it has a formula
    For Each formulaCell In rng
    If formulaCell.HasFormula Then
    formulaCell.Formula = formulaCell.Value
    End If
    Next formulaCell
    Application.ScreenUpdating = True

    End Sub

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: Macro to Convert formulas to Values - Speed

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-28-2015
    Location
    Sydney, Australia
    MS-Off Ver
    Office 365
    Posts
    61

    Re: Macro to Convert formulas to Values - Speed

    Thanks but it only needed cells with formulas converted to Values , I tried it and it puts Zeros in all the empty cells which i don't need.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: Macro to Convert formulas to Values - Speed

    Quote Originally Posted by qwertyyy View Post
    I tried it and it puts Zeros in all the empty cells which i don't need.
    Upload your workbook that puts "Zeros".

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Speed up routine (find formulas - past values)
    By Fean in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-17-2018, 05:43 AM
  2. How to avoid cell SELECTION but still format cells to speed up the macro running speed
    By BeefyBerts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2018, 08:18 AM
  3. [SOLVED] convert formulas to values
    By junjun1925 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-15-2018, 08:06 PM
  4. speed up a macro to unique values
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-27-2016, 06:49 PM
  5. how to optimize finding matching values macro speed
    By missy22 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-25-2013, 10:48 AM
  6. Convert IF formulas to their values
    By GregR in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-06-2006, 04:55 PM
  7. convert formulas to values
    By MatthewFlinchem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-17-2006, 11:45 AM

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.6.0 RC 1