Problème d'actualisation VBA

asta22

New Member
Joined
Apr 13, 2022
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Bonjour,

mon code fonctionne bien mais mon souci c'est que quand j'exécute mon code , il est plus rapide que les fonctions d'Excel, du coup il ne prend pas l'actualisation de la plage sélectionnée

le code vba me permet de déterminer les affectations en fonction des dispo(tableau sous Excel calculé par des fonctions)

mon code néglige la mise à jour des dernières disponibilités , parfois il se base sur les données avant d'exécution d code

y a-t-il une fonction pour ce prob ?
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
méthode la plus facile, vous pouvez ajouter "DoEvents" entre certains lignes.
De tel manière, excel ralenti un petit peu à cette ligne.

autre méthode = application.wait now+timeserial(0,0,1) pour attendre un ou plusieurs secondes (méthode brute)

Si, même cela, ne suffit pas, on peut ajouter un macro, qui attend des millisecondes (par example 250 msec).
 
Upvote 0

Forum statistics

Threads
1,215,375
Messages
6,124,588
Members
449,174
Latest member
chandan4057

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top