How to automate Excel with reusable Office Scripts | Excel Off The Grid

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ย. 2024

ความคิดเห็น • 42

  • @danschroeder8008
    @danschroeder8008 7 หลายเดือนก่อน +1

    I'm sure the possibilities are endless with input. Great tutorial with lots of extra tips. Thanks so much.

  • @ExcelCampus
    @ExcelCampus 7 หลายเดือนก่อน +4

    Great video Mark!

  • @IvanCortinas_ES
    @IvanCortinas_ES 7 หลายเดือนก่อน +1

    Excellent tutorial, Mark. Excellent that you have told this topic. Thank you for staying up to date with the news.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  7 หลายเดือนก่อน

      Most updates are discoverable - but this would be difficult to find. So glad could help.

  • @corinnemazaleigue1619
    @corinnemazaleigue1619 6 หลายเดือนก่อน +1

    Great Video Mark Proctor

  • @lotlaxbbc2787
    @lotlaxbbc2787 7 หลายเดือนก่อน +1

    Thank You. Do you have a reusable script for protection of all the sheets as well?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  7 หลายเดือนก่อน +1

      Do I have one? Yes.
      But you could follow the same process as shown in the video and create your own 👍

  • @ramilaquino5350
    @ramilaquino5350 2 หลายเดือนก่อน +1

    Great video! I was wondering if there is a way to automate file conversion, say .xls to .csv using office scripts? would really appreciate the help! TIA

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  2 หลายเดือนก่อน

      With Office Scripts - no chance… sorry.

  • @mecorowa5642
    @mecorowa5642 6 หลายเดือนก่อน

    Is there an option for dynamic print area?

  • @patrickschardt7724
    @patrickschardt7724 7 หลายเดือนก่อน +1

    Is there a way to get a password input for each sheet as it loops through?
    I’m new to scripts. I’m glad the syntax and editor window is similar to Power Query Advanced Editor

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  7 หลายเดือนก่อน +1

      You would need to provide all the passwords at the start. As a list or range of cells.

  • @petercompton538
    @petercompton538 7 หลายเดือนก่อน

    Hi Mark, I love your videos, both for their content and for your very engaging delivery! Just a question: I'm looking at the screen at 8:28 of the video and you have a line saying
    for (let i = 0; i

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  7 หลายเดือนก่อน

      Hi Peter.
      Office Scripts is based on JavaScript. There are various was to increment an iterator with JavaScript.
      i + 1 by itself won't do anything as it doesn't allocate the new value back to i.
      It would need to be: i = i + 1
      But there are other shorthand methods
      i++ ( iterates by 1 )
      i +=1 ( iterates by the number after the = )
      I'm not sure about other languages, but that's how JavaScript works.

  • @rajeshmajumdar4999
    @rajeshmajumdar4999 7 หลายเดือนก่อน +1

    Thank You.

  • @donniemcgee7523
    @donniemcgee7523 7 หลายเดือนก่อน +2

    Can a script be used to clear all slicers? I have a macro that does that, but my workplace blocks all macros (and we are disallowed to unblock them by saving the file, right clicking, select properties and select unblock)
    Maybe a script can help with that ???

    • @ivanmamchych5802
      @ivanmamchych5802 7 หลายเดือนก่อน +1

      Clearing all slicers is the same as clearing all filters. You can find the menu button "Clear Filter" and add it to your Excel Quick Access Toolbar

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  7 หลายเดือนก่อน +3

      I didn't know. So I tried it out.
      Here you go...
      function main(workbook: ExcelScript.Workbook){
      let sliArr = workbook.getSlicers()
      for (let i = 0; i < sliArr.length; i++){
      sliArr[i].clearFilters()
      }
      }

    • @donniemcgee7523
      @donniemcgee7523 7 หลายเดือนก่อน +1

      @ivanmamchych5802 thank you very much. That was extremely helpful. I tried doing that on the data tab (which was my mistake) . It works perfectly from the pivot table analyze tab. Thank you again

    • @donniemcgee7523
      @donniemcgee7523 7 หลายเดือนก่อน +1

      Amazingly gelpful. Thank you so much!​@@ExcelOffTheGrid

  • @noraiBI
    @noraiBI 7 หลายเดือนก่อน

    Really usefull Mark

  • @petervandewynkele5198
    @petervandewynkele5198 หลายเดือนก่อน

    When i aply this, the worksheets that have been protected "but without a password" do not open. What is needed to open these also

  • @ExcelWithChris
    @ExcelWithChris 7 หลายเดือนก่อน +1

    Do these work in an Excel file on-line? Because macro's do not run.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  7 หลายเดือนก่อน

      Yes, they work in Excel Online (assuming the correct licence). That's where Office Scripts were originally released.

  • @MichaelBrown-lw9kz
    @MichaelBrown-lw9kz 3 หลายเดือนก่อน

    Is there a book I can purchase on Office Scripts for Excel?

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  3 หลายเดือนก่อน

      Not to my knowledge - I’ve got a course if you’re interested: courses.exceloffthegrid.com/office-scripts-course

  • @donniemcgee7523
    @donniemcgee7523 7 หลายเดือนก่อน

    You have been so helpful with your amazingly well done tutorials. I am grateful for your well-thought out and executed videos. I wanted to send you a few dollars to show a bit of my appreciation. Unfortunately, I cannot see an icon upon which I can click to send a token of my appreciation.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  7 หลายเดือนก่อน

      Hi Donnie - if you like what we do, and you watch the videos then you've already given us the most valuable thing you have... your time.
      If you like our content, all we ask is that you share it with others.
      Also, feel free to join our insiders program (it's free). We have ebooks and the example files for you to enjoy. Sign up here: exceloffthegrid.com/insiders-signup/

  • @nikwak
    @nikwak 7 หลายเดือนก่อน +2

    I can't seem to get the Automate tab to show on ribbon

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  7 หลายเดือนก่อน

      Either you don't have Excel 365, or your licence does have Office Scripts included (check our your licence here: learn.microsoft.com/en-us/office/dev/scripts/testing/platform-limits?tabs=business)

    • @PubuduPerera
      @PubuduPerera 7 หลายเดือนก่อน

      Contact your admin. Automate need to be enabled by admin account in 365

  • @shadeburst
    @shadeburst 7 หลายเดือนก่อน +1

    Automate tab is only available in certain versions of Excel.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  7 หลายเดือนก่อน

      Correct. But it is coming to more versions of 365 soon. 🤞

  • @ziggle314
    @ziggle314 7 หลายเดือนก่อน

    I clearly need to do more office scripts! Thanks for the inspiration.

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  7 หลายเดือนก่อน

      It's still early days for Office Scripts. So it's a good time to be the leader of the pack. But the UI and IntelliSense is definitely more enjoyable than the Visual Basic Editor.

  • @matiasgasperini
    @matiasgasperini 6 หลายเดือนก่อน +1

    IT people crying in safety issues 3:01

    • @ExcelOffTheGrid
      @ExcelOffTheGrid  6 หลายเดือนก่อน +1

      It’s OK, Excel’s protection is so weak that any password can be hacked is seconds. So might as well pick an easy one. 🤣