- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So I have a simple loop to remove the overrides from a partslist:
ThisApplication.ScreenUpdating = False
For Each plr In pl.PartsListRows
plr("col1").Static = False
plr("col2").Static = False
If plr("col1") = "" Then
plr("col1").Value = "No"
End If
Next plr
ThisApplication.ScreenUpdating = true
as expected on small assemblies there is no issues, on larger ones it is not a huge delay but noticeable as well as mouse flickering.
question is when editing the parts list manually, and then hitting ok, the changes seem to be almost instant after hitting ok.
My guess is when iterating through the steps, it is like hitting the "ok" button at the end of each loop.
Is there a more efficient way to perform such a loop, where all the changes are done and then applied in "one shot" (for a lack of better description) like modifying the table manually and then hitting the ok button?
Solved! Go to Solution.