Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Actualiser Power Query en VBA #46595
    eliecahen
    Participant

    j’ai trouve une solution…
    Couper la macro en 2

    `Sub DataRefresh()
    ‘ ActiveSheet.Unprotect “123”
    ActiveWorkbook.RefreshAll
    Application.OnTime Now + TimeValue(“00:00:01”), “DataRefresh2”
    End Sub
    Sub DataRefresh2()
    If Application.CommandBars.GetEnabledMso(“RefreshStatus”) Then
    Application.OnTime Now + TimeValue(“00:00:01″), ” DataRefresh2″
    Else

    End If
    End Sub

    in reply to: Actualiser Power Query en VBA #46590
    eliecahen
    Participant

    Merci de votre réponse.
    Le vrai probleme est que si j’actualise par macro,l’actualisation s’arrete quand le script vba se termine et non quand l’actualisation est terminé, donc je recois des erreurs d’actualisations dans mes requetes.
    Vous avez une idee que le script ne s’arrete pas pendant x temps?
    Merci

Viewing 2 posts - 1 through 2 (of 2 total)