Quantcast
Channel: Project Customization and Programming forum
Viewing all articles
Browse latest Browse all 5347

Bug in Project 2013 when turning off screenupdating in vb

$
0
0

Below a short (3-line) piece of code that turns off screen updating, applies the "Gantt Chart" view (though any view or table produces the same effect), then turns screen updating on again.

When you run the code, the result is all task names and gantt chart bars disappear - only the dependencies remain in the Gantt chart. making ScreenUpdating = True restores them again.

Has anyone else seen this potentially major bug? It seems like turning screen updating on again after turning it off doesn't refresh the screen.

Sub screen_updating_problem()
    ' Make the next line "True" to fix the problem, i.e. not update the screen
    ScreenUpdating = False

    ViewApply "Gantt Chart"

    ScreenUpdating = True
End Sub


Viewing all articles
Browse latest Browse all 5347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>