+ Reply to Thread
Results 1 to 3 of 3

Stop updating values pop-up when updating formulas

Hybrid View

  1. #1
    Registered User
    Join Date
    10-31-2012
    Location
    South Australia, Australia
    MS-Off Ver
    Excel 365
    Posts
    51

    Stop updating values pop-up when updating formulas

    Hi Gurus,
    Hoping someone can assist as all other searches/fixes don't seem to work for my spreadsheet!
    I have a workbook that searches for and grabs values from closed workbooks with variable naming convention dependant on a cell value in the format "MmmYY".

    I have attached a small sample- the actual workbook has over 100 lines and 15 colums with formulas to return data.

    The updating of this workbook works with no issue using really simple VBA:

    Sub Check_Data()
    Range("$C$4:$N$83").Select
    Selection.Replace What:="MmmYY", Replacement:=Range("$A$1").Value, LookAt:=xlPart, _
    SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
    ReplaceFormat:=False
    End Sub
    When i try and clear the data using :

    Sub Clear_TSSData()
    Range("$C$4:$N$83").Select
    Selection.Replace What:=Range("$A$1").Value, Replacement:="MmmYY", LookAt:=xlPart, _
    SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
    ReplaceFormat:=False
    End Sub
    I get the "update values" pop up for each cell which i am trying to remove.

    I have tried the below pieces of code but these didn't work for me and the update value box still appeared.

    ThisWorkbook.UpdateLinks = xlUpdateLinksNever
    and :
    If Application.DisplayAlerts Then
    Application.DisplayAlerrts=False
    Else
    Application.DisplayAlerts = True
    End If
    Hoping somone can shed some light on where i'm going wrong?

    Cheers,
    G
    Attached Files Attached Files
    Last edited by goldfield; 10-14-2024 at 01:04 AM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,891

    Re: Stop updating values pop-up when updating formulas

    It's difficult to test as the workbook tries to link to a service and there's no dummy data in there for us to work with.

    I can only suggest trying display alerts again but like this
    Sub Clear_TSSData()
        Application.DisplayAlerts = False
        Range("$C$4:$N$83").Select
        Selection.Replace What:=Range("$A$1").Value, Replacement:="MmmYY", LookAt:=xlPart, _
        SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
        ReplaceFormat:=False
        Application.DisplayAlerts = True
    End Sub
    To really help any further we'd need to see the sample file without it needing to link so something else and with some data/formulas already in there.

    BSB

  3. #3
    Registered User
    Join Date
    10-31-2012
    Location
    South Australia, Australia
    MS-Off Ver
    Excel 365
    Posts
    51

    Re: Stop updating values pop-up when updating formulas

    BSB,
    Thanks so much- this did the job, I must have had the previous code in the wrong place.
    Much appreciated!

+ 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. Stop Updating of NOW function
    By Moazam Ali in forum Excel General
    Replies: 3
    Last Post: 01-31-2017, 06:08 AM
  2. Formulas stop updating when page is zoomed?
    By CandidT in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-16-2016, 01:26 PM
  3. [SOLVED] Stop sheets from updating
    By horsefish01 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-31-2015, 01:29 PM
  4. Stop Updating
    By nappy1001 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-16-2013, 03:27 PM
  5. Updating values without updating graphs
    By nj8988 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-21-2013, 07:57 PM
  6. List box values updating but text is not updating
    By Shane of the Newbs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-16-2011, 11:53 AM
  7. Replies: 1
    Last Post: 07-02-2010, 12:19 PM

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