+ Reply to Thread
Results 1 to 26 of 26

Why is “Application.ScreenUpdating = False” not working pivot table?

  1. #1
    Forum Contributor
    Join Date
    05-27-2021
    Location
    italy
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    109

    Why is “Application.ScreenUpdating = False” not working pivot table?

    Hi friends, I have a question to ask you, I have created this code that allows me to update a pivot table to the various data of the column a. The problem is that I would like to make these changes in the backgroud. but unfortunately nothing seems to work.
    https://youtu.be/3xiR3G_2tJU
    code worksheet
    Please Login or Register  to view this content.
    code module
    Please Login or Register  to view this content.
    Last edited by GrabberHackman; 08-01-2021 at 07:05 AM.

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,234

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    You probably need to turn off background refresh for the PivotTable.

    Artik

  3. #3
    Forum Contributor
    Join Date
    05-27-2021
    Location
    italy
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    109

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    where is the background item, the word background lko used to make it clear what I want to achieve, in practice every time the table is updated I would not want the update to be visible to the human eye as shown in the video

  4. #4
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,234

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    I haven't tested, but it seems that you should put:
    Please Login or Register  to view this content.
    before line:
    Please Login or Register  to view this content.
    Artik

  5. #5
    Forum Contributor
    Join Date
    05-27-2021
    Location
    italy
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    109

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    after several tests with this string, the table does not perform any updates

  6. #6
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,234

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    Unfortunately, without the sample file, which will reflect the actual file, I can not help.

    Artik

  7. #7
    Forum Contributor
    Join Date
    05-27-2021
    Location
    italy
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    109

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    the sample file
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,234

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    The sample file does not have symptoms shown in the video, so it is not representative.
    Try to comment out the line at the end of the procedure while testing:
    Please Login or Register  to view this content.
    Has it helped?

    Artik

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,396

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    @GrabberHackman

    Is your forum profile up-to-date? Are you really using the now very old Excel 2007, or is this a release of MS365? If the latter, then please update your profile. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Forum Contributor
    Join Date
    05-27-2021
    Location
    italy
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    109

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    thank you so much @Aligw for making me notice this what i will provide immediately
    Last edited by AliGW; 08-01-2021 at 05:41 AM. Reason: Please do NOT post edit your posts in this way - it makes the entire thread nonsensical!

  11. #11
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    If what you mean by not updating is the new data in row 132 not appearing in your PivotTable, that's because your data source only covers the range Elab!$A$2:$B$131.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,396

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    It's still 2007. I don't think you understood my question!

    Do you have software that is over 15 years old (Excel 2007), or do you have MS Office 365 (release 2007)? If you have the latter, you need MS365 in your profile. If you still have the very old version, you need Excel 2007, please.

  13. #13
    Forum Contributor
    Join Date
    05-27-2021
    Location
    italy
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    109

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    aligw is my excel 2007 version

  14. #14
    Forum Contributor
    Join Date
    05-27-2021
    Location
    italy
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    109

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    what I want to get and not see the changes on the screen

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,396

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    OK - If you still have the very old Excel 2007, then your profile is fine. Thanks.

  16. #16
    Forum Contributor
    Join Date
    05-27-2021
    Location
    italy
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    109

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    I have modified the result and appreciable, if there are other suggestions, I am happy to accept them
    sample file
    Please Login or Register  to view this content.
    in the original file some changes are still shown on the screen which in my opinion is linked to the parameter in not intersect in the worksheet

    video
    https://youtu.be/j1TruAcxbpg

  17. #17
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,234

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    Have you tried the advice from post # 6?

    Artik

  18. #18
    Forum Contributor
    Join Date
    05-27-2021
    Location
    italy
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    109

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    yes I added
    at the beginning of the module

    Please Login or Register  to view this content.
    while at the end of the form

    Please Login or Register  to view this content.
    in the attached video, you can see the result in the optimal example file, while in the original file you can still see some changes that in my opinion are related to the intersect

    https://youtu.be/j1TruAcxbpg

  19. #19
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,234

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    I asked you to disable the line which enables screen refresh by adding an apostrophe to the beginning of the line:
    Please Login or Register  to view this content.
    Artik

  20. #20
    Forum Contributor
    Join Date
    05-27-2021
    Location
    italy
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    109

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    sorry i didn't see the font, i try

  21. #21
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,234

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    Quote Originally Posted by Artik View Post
    Have you tried the advice from post # 6?
    Oops, it was supposed to be post # 8. I'm sorry too.

    Artik

  22. #22
    Forum Contributor
    Join Date
    05-27-2021
    Location
    italy
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    109

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    great it works

  23. #23
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,234

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    Now try turning the commented out line back on, but in a different order:
    Please Login or Register  to view this content.
    Artik

  24. #24
    Forum Contributor
    Join Date
    05-27-2021
    Location
    italy
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    109

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    good start of the week @artik, I did some tests that I attach you in the video on the selection and deselection of the string Application.ScreenUpdating = True

    unfortunately, the result I get in the example file is not the same as what you get in the original file.
    I enclose a demonstration video of what I tried

    https://youtu.be/XI6jcR29bHA

  25. #25
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,234

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    Do you have the Calculate event programmed somewhere in the original file?
    When you turn on automatic recalculation (at the end of the procedure), all formulas that depend on the data range to be changed with the macro will be recalculated. If the Calculate event is programmed, it probably affects the data refreshing.

    Artik

  26. #26
    Forum Contributor
    Join Date
    05-27-2021
    Location
    italy
    MS-Off Ver
    Microsoft Office Professional Plus 2016
    Posts
    109

    Re: Why is “Application.ScreenUpdating = False” not working pivot table?

    disabale Application.ScreenUpdating = True good work
    Last edited by AliGW; 08-03-2021 at 04:19 AM. Reason: PLEASE don't quote unnecessarily!

+ 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] Application.Screenupdating = False Is Not Enough !
    By Logit in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 02-23-2019, 03:05 AM
  2. Application.ScreenUpdating = False
    By Gero92 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2018, 03:27 AM
  3. [SOLVED] Application.screenupdating True towards False isnt working
    By Fean in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-07-2016, 11:45 AM
  4. Application.Screenupdating = False - not working
    By demarc in forum Excel General
    Replies: 3
    Last Post: 05-02-2015, 11:02 AM
  5. Application.Screenupdating = false not working
    By tanvi_kalra in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 01-30-2014, 09:55 AM
  6. Application.screenupdating = False is not working
    By gnome_core in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-15-2009, 03:32 PM
  7. Using the Application.ScreenUpdating = False?
    By Susan Hayes in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-29-2005, 12:06 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