Say Goodbye to Boring Excel Tasks: Create Cool Buttons to Run Office Scripts from ANYWHERE

Поделиться
HTML-код
  • Опубликовано: 23 июл 2024
  • Join 400,000+ professionals in our courses here 👉 link.xelplus.com/yt-d-all-cou...
    An Office Script is the new way to automate boring tasks in Excel. You can run these scripts on the web, in Microsoft Teams and even on your desktop. Now you can help your colleagues find and run your Office Scripts by adding a cool button to your workbooks. Not only does this make it easy for others to run the script, but the script is available automatically to anyone you share this workbook with. This way you do not need a macro-enabled workbook to run the automation.
    Key Highlights:
    - Introduction to Office Scripts: Understand what Office Scripts are and how they can replace traditional macros, offering flexibility and ease of use across various platforms.
    - Cross-Platform Compatibility: Learn how you can run scripts not only in Excel on the web but also in Microsoft Teams and even on the desktop version of Excel.
    - Interactive Button Creation: Explore how to add visually appealing, clickable buttons to your Excel sheets, making script execution easy and intuitive for anyone.
    - Real-World Application: Follow a practical demonstration where we automate the formatting process across multiple worksheets with just a few clicks.
    - Editing and Customization: Gain insights into customizing buttons and editing scripts to suit your specific needs, enhancing your Excel experience.
    - Script Accessibility: Find out the important requirement of having your files on SharePoint or OneDrive to access and run Office Scripts effectively.
    - Hands-On Tutorial: Walk through a step-by-step guide to recording an Office Script from scratch, making your spreadsheets more dynamic and efficient.
    - Sharing and Collaboration: Understand how these scripts enhance collaboration, allowing shared access and execution within Teams and across platforms.
    In this video, I'll show you how you can record a script to loop through an entire workbook to apply a specific formatting. Then we'll assign the script to a button.
    🌍 My Online Courses ► www.xelplus.com/courses/
    00:00 Create a Button to Run an Office Script
    00:37 Important Information About Scripts
    02:35 Record an Office Script
    04:27 Create and Modify the Button
    05:39 How to Edit the Office Script
    08:30 More Information about Scripts
    09:04 Running the Office Script
    10:52 Wrap Up
    🎬 LINKS to related videos:
    Introduction to Office Scripts: • Introduction to Office...
    ➡️ Join this channel to get access to perks: / @leilagharani
    👕☕ Get the Official XelPlus MERCH: xelplus.creator-spring.com/
    🎓 Not sure which of my Excel courses fits best for you? Take the quiz: www.xelplus.com/course-quiz/
    🎥 RESOURCES I recommend: www.xelplus.com/resources/
    🚩Let’s connect on social:
    Instagram: / lgharani
    LinkedIn: / xelplus
    This description contains affiliate links, which means at no additional cost to you, we will receive a small commission if you make a purchase using the links. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
    #Excel #officescripts

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

  • @LeilaGharani
    @LeilaGharani  6 месяцев назад

    Stay ahead with our Weekly Newsletter. Get the latest insights and updates straight to your inbox 👉 link.xelplus.com/yt-c-newsletter

  • @melissabrown1565
    @melissabrown1565 Год назад +1

    I love you! I have taken your VBA class as well as others and have learned a ton. This is definitely my next task for automating our processes. Thank you!!!!

  • @azmibumci3931
    @azmibumci3931 Год назад +31

    I've been using scripts for up to 5 years now, and applied them with buttons for almost 3 years now. I use it mostly for doing routine monthly formating and generate financial reports within seconds. I also use them to filter and print (in pdf or paper) those reports without having to literally go to the filter drop down or select the specific printer and number of page I want to print. Buttons and scripts have saved me a couple of days at work and lot's of frustration to be honest.

  • @donaldvanprooyen2970
    @donaldvanprooyen2970 Год назад +2

    I consider myself pretty competent with Excel and VBA. I must say you have upped my game considerably... you are a treasure which I just discovered recently

  • @batarasiagian9635
    @batarasiagian9635 Год назад +2

    Many thanks. Productivity-enhancing knowledge, well-presented.
    As usual.

  • @chrism9037
    @chrism9037 Год назад +2

    Thanks Leila, another great video! I never knew much about scripts.

  • @dcpowered
    @dcpowered Год назад +2

    Please make more Office Script videos!! This is a fantastic new tool and i really want to learn how to use it in more scenarios!

  • @techcorner2024
    @techcorner2024 Год назад

    Oh I love this. Now this is gonna help me a lot. Thanks lady

  • @stevin9893
    @stevin9893 Год назад

    Thank you for sharing! Have a nice day!

  • @namphungpiyachai4355
    @namphungpiyachai4355 Год назад

    I am your big fan, you are an awesome teacher!

  • @TheMhujako
    @TheMhujako Год назад

    Thank you for sharing... ❤️

  • @jaznihemaiti2169
    @jaznihemaiti2169 Год назад

    looking forward to a full length course for office script just the way you did for VBA, I've become quite comfortable and proficient after taking your courses !

  • @vesaruusunen5685
    @vesaruusunen5685 Год назад +1

    Great video. Thank you!
    Could you create a tutorial how to use message box in office scripts? So that user could define content of variable by answering to a box instead of writing it to specific cell.

  • @PrimalEdge
    @PrimalEdge Год назад +1

    you're a lifesaver!

  • @joeyoukhanna6519
    @joeyoukhanna6519 Год назад +1

    Great information just like always, thank you so much dear Leila

  • @Betruet
    @Betruet Год назад +1

    Very useful thanks

  • @syedafrid5154
    @syedafrid5154 Год назад

    Thanks

  • @hermanbroeckx8329
    @hermanbroeckx8329 Год назад

    Thank you Leila

  • @Infographicsproject
    @Infographicsproject Год назад +6

    Very interesting. It would be nice to present the Office scenarios as an infographic.

  • @PhG1961
    @PhG1961 Год назад

    Awesome !

  • @mrknighttheitguy8434
    @mrknighttheitguy8434 Год назад

    Been doing this for a while, it's very useful

  • @latifaaltaqi4737
    @latifaaltaqi4737 7 месяцев назад

    Love this!! Thank you so very much, Leila!! One thing, the script I recorded is perfect and runs like a dream. However, I needed to move the newly created (run script) button to another tab. Once I did so, the script runs only on the sheet where the button is located. How do I click the button on one tab and get it to run on, say, "Sheet1" of the workbook?

  • @unusedTV
    @unusedTV Год назад +9

    Office scripts are essentially just JavaScript with some Office-specific functions, so it's easy to use the scripting elsewhere too. It's a transferable skill.

  • @gracechurchmiltonontario3902
    @gracechurchmiltonontario3902 Год назад

    Great video and it could help with some of our processes. But our organization has a mix of Business Premium and Business Basic accounts. Only the Business Premium accounts have access to automate in Excel. If a Premium user creates a script for a spreadsheet and shares it with a Basic user with full edit permissions, would the Basic user be able to run the scripts?

  • @temyraverdana6421
    @temyraverdana6421 Год назад

    Very interesting video.
    I have a question: Office script run on smartphone or pad?
    Thanks and see you next

  • @juanfox2657
    @juanfox2657 11 месяцев назад +2

    4:49 I don't have "Add button" option here. The options I have are: Delete, Rename, Automate a task. I have a 365 business suscription. Do you know why I don't have this option? Is any way to activate it or another way of adding buttons?

  • @YosYos-ni1ze
    @YosYos-ni1ze Год назад +1

    hi
    I love it.
    I only have one comment.
    when changing from a single sheet operation to for loop on all sheets, instead of changing all "SelecteSheet" to "W", I would change to loop variable "W" to SelectedSheet. I also think using a name of a single letter like "w" is not a good practice.
    Thanks.

  • @jarredserrano21
    @jarredserrano21 Год назад

    Thankyou for sharing, nice presentation. Do I Need to subscribe to access "automate" and record macro? and can it be run via phone? the goal is to create office files and can access by phone and do some automation anytime anywhere . Thankyou, learning a lot from your videos, subscribed and will definitely stay tuned.

  • @kashifKhan-wv5sf
    @kashifKhan-wv5sf Год назад

    please make a video on excel symbols and their meanings so i can understand and customize the formulas like what is meant by " " these in a formula.... Or if we want to use and in the function like this and (+) this how we use it. Basically its about symbols that were used in excel formulas... $ this one & this one ..

  • @SirMicTuT
    @SirMicTuT Год назад

    Hi is there a way to use one script file only for multiple buttons. I have a worksheet that has multiple buttons and this also has multiple script files. Although you can add multiple functions in a single script but It can't call the other functions without running the main function

  • @leopickard7090
    @leopickard7090 Год назад

    Using office scripts after converting csv I am emailed to xlsx in power automate then creating a table so power automate can read data and add to SharePoint etc

  • @vida1719
    @vida1719 Год назад

    This is great. I haven't tried using scripts yet, but I am looking forward. I need to see benefit of scripts vs VBA, so maybe I should create a script, which could replace my existing macros.

    • @LeilaGharani
      @LeilaGharani  Год назад

      I'd be curious to hear about your findings 🙂

    • @vida1719
      @vida1719 Год назад

      I've recorded simple script in online Excel version and saved file to OneDrive desktop, but script button didn't work. Maybe not all Excel 365 versions support scripts

  • @PJoosen
    @PJoosen Год назад +2

    Got 2 questions,
    Will the scripts still work if you share them outside your organisation?
    And is it possible to protect your document that people can use the script but not change them?
    Thanks already!

  • @WalkWithTiger
    @WalkWithTiger Год назад

    Can you share scripts for Google forms. I would like send a customized email to the customer as soon as the submit button on goggle form.

  • @zahoorzukka5567
    @zahoorzukka5567 Год назад

    Any short cuts to remove only special characters from the text or sentence?

  • @mswordexpert
    @mswordexpert Год назад

    Can I use Office script in any 365 version?

  • @cjclarke-main4641
    @cjclarke-main4641 Месяц назад

    I love vba but I am loving scripts so far, it will take some time to get used to it but I'm in...
    I do have a question... I did my first script on an excel sheet, when i run it manually it runs immediately however when I run it from the button it takes more than a minute to run. what culd be the cause?
    The script unlocks the excel FORM, and blanks all fields then lock the sheet again 🤔

  • @handsomecaveman
    @handsomecaveman Год назад

    Are office scripts going to be a thing outside of SharePoint or OneDrive?

  • @shamskhan8757
    @shamskhan8757 Год назад

    Please make video on dashboard. Outlook excel dashboard

  • @philly_Will
    @philly_Will Год назад

    It seems you have to have an organizational account for this to work. Not for private users?

  • @chh8860
    @chh8860 Год назад

    " ... these files are on SharePoint ...".
    Very timely ...
    But alas, I am a novice 'scripts' student. My scripts look like a kindergarten's first reader, i.e., "... See Spot run. Run. Run. Run ..." ... while Leila's scripts (to me) read like Shakespeare. But with Leila as the teacher, I continue to dream that someday I too will be able to write great lines of prose. She is a terrific instructor ... always patient ... always available … always helpful.
    Thank you ... thank you ... thank you .... 😍😍

  • @michabak2354
    @michabak2354 Год назад

    @Leila does it work on MacOS excel app?

  • @mohammadafsari4686
    @mohammadafsari4686 Год назад +1

    Hi Thank you , question i have pms file i want to know is there any way to excel calculate by own and find 3rd date between start and finish date with formula and gives best match date between 2 start and finish date , it's example that can expand for 1000 tasks
    Imagine i have 3 tasks with 5 days duration start is 1/1/22 and finish is 1/12/22 so first task start 1 day and 3rd task start 1/7/22 now I want excel calculate and find best date between in 2 tasks that must be 1/4/22
    Now is there anyway excel calculate and find this date, this is can use for 1000 tasks more or less that I need to find it
    1000000 tnx if you help me 🌹🌹🌹🌹
    Thank you 🌹🌹

  • @PlayFoFun
    @PlayFoFun Год назад +2

    omg the frustration. Cant find it anywhere. Where do you find or add the button Automate?

  • @PresentationConcepts
    @PresentationConcepts Год назад

    Hello can anyone help me that how I can assign keyboard shortcut to my subprocedure or macro using VBA in PowerPoint

  • @LakshmiAddepalli
    @LakshmiAddepalli Год назад

    Hi Lelia,
    i am getting below error while running your script. Can u plz help me out.
    Cannot read properties of undefined (reading '0')

  • @harthenry
    @harthenry Год назад

    I have not been able to find a way to PRINT from Office Scripts - nice to have a button that says "Print" and uses the default printer. But, seems like this is only in Desktop VBA mode (which we are trying to move away from)

  • @paschaliskagias9675
    @paschaliskagias9675 Год назад

    Dear Leila. I want the dates looking like this 24/05/2020 and not 24/5/2020. How can I achieve it?

  • @sermetshabani9175
    @sermetshabani9175 10 месяцев назад

    Hi Leila and everyone.
    Does anybody know why I am missing " + Add button" on my version of Excel online, show at 04:37?
    Does anybody know how I can enable it?

  • @Stef1955
    @Stef1955 Год назад +1

    This could be your greatest video of all time.

    • @Stef1955
      @Stef1955 Год назад

      But I do wish Excel online would do subtotals!

  • @thamilanban
    @thamilanban Год назад

    Expecting your new course on Udemy.

  • @motraining1774
    @motraining1774 11 месяцев назад

    What should we do if we don't see the "Add button" under more options?

  • @elshanm9387
    @elshanm9387 Год назад

    Great! It looks like to a macros. What is the difference between script & macros?

    • @LeilaGharani
      @LeilaGharani  Год назад +1

      Maybe this is helpful: ruclips.net/video/DOvHqukAGTY/видео.html

    • @carollim569
      @carollim569 Год назад

      @@LeilaGharani I have go to the link on difference between VBA and script. It's very helpful. As the video for difference of VBA and script is a year ago. Things that script can't do, I see you are able to do now like create a button and insert the script. How about pop up message and event?
      Currently, script about to do?
      Currently, I m using VBA but maybe I will switch to script in a correct timing.

  • @WojtekCzaderna
    @WojtekCzaderna Год назад

    So basically these are Macros on the the Server side, right?

  • @gadiskulagibobok9148
    @gadiskulagibobok9148 Год назад

    aku rasa bagus apabila menggunakan google sheet dan berikan secara langsung agar kami langsung memakainya ( mohon di buatkan saya dari indonesia )

  • @alfonsomoreno5417
    @alfonsomoreno5417 Год назад

    Line 46: Cannot read properties of undefined (reading '0')

  • @albert4491
    @albert4491 Год назад +2

    So can we soon expect a scripts course coming?!? :)

    • @LeilaGharani
      @LeilaGharani  Год назад +1

      Not "soon" but yeah, I definitely want to create one 😁

    • @johannesmp3
      @johannesmp3 Год назад +1

      Office scripts 101 maybe, Leila

    • @johannesmp3
      @johannesmp3 Год назад

      I wish Microsoft kept VBA. Office scripts looks complicated

  • @immi1498
    @immi1498 Год назад

    Can you help me?
    I have data in sheet2
    I want to put new data row of 15 cells in sheet1
    I want it to go to sheet2 in last row
    N
    Continue with my new data

    • @johnfromireland7551
      @johnfromireland7551 Год назад

      See this video which shows you how to add data to the last row of a table:
      ruclips.net/video/xWPnQhJJ8H8/видео.html

  • @DevinAdint
    @DevinAdint Год назад

    First I'm hearing of office scripts. I've always used vba. I'm not sure I like the idea of saving the script outside the document, if it's for a document it should be saved with that document.

  • @MrAIProgrammer
    @MrAIProgrammer Год назад +1

    Are office scripts different from VBA?

    • @LeilaGharani
      @LeilaGharani  Год назад

      They have the same purpose but also work on the web. Here's an explanation of the difference: ruclips.net/video/DOvHqukAGTY/видео.html

  • @farazchughtai
    @farazchughtai Год назад

    these script works on MAc excel

  • @kolavithonduraski5031
    @kolavithonduraski5031 Год назад +3

    i am open to new solutions...but when they want vba people to change...they should at least give us a full screen IDE...for debugging and so on...
    i am learning javascript, but the language is too full of {}{}{}... vba is much clearer to me...
    i am exited how far Office Script will get

    • @johnfromireland7551
      @johnfromireland7551 Год назад

      You can drag the Code Editor across to the left taking up the whole screen. There is discussion, at this time, I believe, on having Office Scripts within Visual Studio Code. The "Learn the Basics" documents, as mentioned by Leila, are extremely good and will get you very productive very quickly. Given most businesses are using cloud tools, including Office 365, VBA is less and less used. Millions of VBA scripts will need rewriting to Office Scripts if the owners want them to run on cloud files. Though that said, Power Automate Desktop does allow a work around for that! See this video:
      ruclips.net/video/owI4LyQb2xE/видео.html

  • @olaajayi7384
    @olaajayi7384 Год назад

    Jeen Yuhs

  • @SPCFreed
    @SPCFreed Год назад

    Can I pay for for 30min of training?

  • @El-Ge
    @El-Ge Год назад

    I used to work with Photoshop and seems that Microsoft learns from Adobe Photoshop Action which records all the actions to create our own photoshop action or in this case, MS Office script.

    • @bondaluh
      @bondaluh Год назад

      ruclips.net/video/a8KMITn1Qwg/видео.html 😆

    • @johnfromireland7551
      @johnfromireland7551 Год назад

      Welcome to the world of Microsoft. VBA has been around since 1996 or earlier! And the F4 button is, also, a mini macro facility. Office Scripts fills the macro void that existed for Excel Online.

  • @jsleezy914
    @jsleezy914 Год назад

    Beautiful gorgeous woman and SMART 🤓 ❤

  • @YasinNabi
    @YasinNabi Год назад

    "There are no secrets to success. It is the result of preparation, hard work, and learning from failure."
    -- Colin Powell,,,,,

  • @johnpilon
    @johnpilon Год назад

    Definitely interesting but I was really hoping scripts would be standalone at some point. Happy but also kinda disappointed. :(

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

    Congratulations ... it can now almost do what VBA have been able to do for 30 years...

  • @neomorphosallomorphis7395
    @neomorphosallomorphis7395 Год назад

    I really hate Microsoft forcing you to use their cloud to access a simple scripting feature. (Running simple code like this takes like 0.01 seconds for a bad cpu) This is only to lock users in their ecosystem, and prevents anyone (company/individuals) to integrate excel in a broader set of tools they own. As a consumer, you don't really own the product you bought, as it's still administered by the company you bought it from.

  • @EgnachHelton
    @EgnachHelton Год назад +1

    Finally we don't need to learn fucking visual basics just for excel automation...

    • @kolavithonduraski5031
      @kolavithonduraski5031 Год назад +2

      ...🤣 are you for real?
      VBA is still much more powerful than this...
      i dont hate JS, but it is a Web-Language. it would be beneficial when everything in office is web-based.
      but do i really want all my data and company data on microsoft servers??? i dont think so...

    • @ChrisS-if7ev
      @ChrisS-if7ev Год назад +1

      @@kolavithonduraski5031 exactly Not a chance. Also why I will never own a 365, well nobody will ever own it. Software on my hardware, not theirs!

    • @johnfromireland7551
      @johnfromireland7551 Год назад +1

      @@kolavithonduraski5031 When you create your Microsoft Office 365 account it is based on geographic location. So, if you are in the US then your data will be stored in the US. If you create your account in France, your data is stored in "West Europe" and under the regulatory and legal control of the European Union - i.e. GDPR. Microsoft has no access to your data in any case. The only issue that has ever arisen in this matter is the US government stealing consumer's data. GDPR and more recent EU law seeks to counter this malicious US Government activity. Anecdotally, I have heard/read, of all the cloud service providers Microsoft is the most secure. Though I am not a security expert.

    • @johnfromireland7551
      @johnfromireland7551 Год назад +1

      ​@@ChrisS-if7ev The world started moving to the cloud many years ago. Data Centres will be soon, the only way you are allowed to use software. Your country will make it law. Sharing physical resources via a data centre, for example, negates the need for millions of power hungry devices (laptops) when only one data centre (self-powered using geothermal/solar) is needed. All countries are now, facing an energy crises. Raw materials, too, for smart devices, are about to run out or be restricted by countries self-preserving their own needs. Soon, there will be no new smart devices. This is the reality we all need to think about and prepare for. Dumb Terminals (with Office Scripts) and Data Centres is the future. You better start learning Office Scripts. 🤖

    • @ChrisS-if7ev
      @ChrisS-if7ev Год назад

      @@johnfromireland7551 Won't happen. I will use a outdated version, hacked if need be on my own enviornment. Kind of like I refused to use Adobes online tools. I still run Adobe in my own ecosystem.