Automate endless and boring data refresh tasks in Excel spreadsheets, using VBA and Task Scheduler.

Поделиться
HTML-код
  • Опубликовано: 2 ноя 2024

Комментарии • 22

  • @beckipeterson5105
    @beckipeterson5105 3 месяца назад

    Fabulous and simple solution to get it done! THANK YOU SO MUCH!!! You really should have a Donate button here since this saved me HOURS I'd love to "pay it forward".

  • @Pbr318
    @Pbr318 8 месяцев назад

    Best video about macroo thanks

  • @nishinambiar4663
    @nishinambiar4663 7 месяцев назад +1

    Very well explained :)

  • @NabilKhan-n3k
    @NabilKhan-n3k Месяц назад

    this video is so helpful, thank you for this. However I have one question. Suppose I am doing work in another excel file, and the automation executes, it will close my workbook as well for the
    Application.Quit command mentioned in 19:09 , will anything happen if i do not close the application? There might also be times when i am not working the code executes, i do not mind a blank excel window being open.

    • @SwachalanKaar
      @SwachalanKaar  Месяц назад

      You're welcome. I'm glad I could assist you. Regarding your query, it's generally recommended to close unnecessary Excel applications when executing a series of macros. This allows the computer to allocate resources more efficiently to the active window. If multiple Excel instances remain open and your macro doesn't explicitly specify navigation, there's a risk of unintended interactions or errors during execution.

  • @kebincui
    @kebincui 4 месяца назад

    Excelletn video. Thanks for sharing. I have a question. The automation by task scheduler is achieved by setting the VBA run when open the excel file. Could you please show how to use task scheduler to run a macro rather than set the macro run when opening a file? Thanks

    • @SwachalanKaar
      @SwachalanKaar  4 месяца назад

      Yes, we can do that by saving the macro as VBScript (.vbs) file. In this technique you'll have to call the Excel application within the .vbs file and the rest will be taken care of by the code.

    • @kebincui
      @kebincui 4 месяца назад

      @@SwachalanKaar Thanks

  • @justdave9195
    @justdave9195 5 месяцев назад

    Great video.
    I have 50+ files that need to be refreshed, is there a way I can loop it to refresh the files one at a time??

  • @chaitanyajoshi690
    @chaitanyajoshi690 2 месяца назад

    Dear Sir
    Pl guide if and how is it possible to refresh the files without opening them with the help of VBA preferably?

    • @SwachalanKaar
      @SwachalanKaar  2 месяца назад

      You may choose Excel to not show what is being executed, but it will still open an instance in the background. You can check Task Manager when your macros execute.

    • @chaitanyajoshi690
      @chaitanyajoshi690 2 месяца назад

      @@SwachalanKaar
      Thanks for the guidance....

  • @syhiraira2198
    @syhiraira2198 2 месяца назад

    can it refresh excel inside the sharepoint instead of desktop?

    • @SwachalanKaar
      @SwachalanKaar  2 месяца назад

      Use Office Scripts instead of VBA for your use case.

  • @mohitjangid4807
    @mohitjangid4807 Месяц назад

    any other updated way??

    • @SwachalanKaar
      @SwachalanKaar  Месяц назад

      Depends on what you are trying to achieve. If you are using Excel Online then go for Office Scripts.