"Hello World" Visual Studio Tools for Office C# Excel Addin

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

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

  • @mikevwoods
    @mikevwoods 5 лет назад +3

    Great video thank you. Saves so much time trying to tweek the essentials out of the mass of documentation on the Internet. You had me worried at the end when you said VSTO is not available with Express editions 😂 but you do cover that in the video description. Thanks again.

  • @EngineeringFun
    @EngineeringFun 2 года назад

    Steve, I have a question. If I have an add-in (I made) in an Excel file and distribute this file to my customers, would they be able to run this add-in in that file (I gave them) automatically at open, without installing anything? People hate installing stuff. Thanks!!!

  • @josscastellanos2999
    @josscastellanos2999 5 лет назад +4

    This is a great video. It's been a while since I programmed in Excel. I did a lot of addin work with VBA. But this great. Thank you.

  • @iFalkonsSama
    @iFalkonsSama 5 лет назад +3

    This video is just awesome, thank you very much for this explaination. I think it was a quick exposition but also a clear and an efficient one.

  • @komaromijozsef5640
    @komaromijozsef5640 3 года назад +1

    It says ThisAddIn does not contain a definition for GetActiveWorksheet and no accessible extension method accepting a first argument of type ThisAddin could be found.

  • @indurathore4205
    @indurathore4205 2 года назад +1

    Awesome Video , very good explanation. I have one more question regarding this , how to create MSI installer of this , if I want to install office addin on other machines ? Please help me out in this , that will be great help

  • @martintaunton126
    @martintaunton126 6 лет назад +1

    You mention at the end of your helpful video that VSTO is not available in Community editions of Visual Studio. However I have Community 2017 and found it straightforward to go to Programs and Features on my control panel and install VSTO etc from there. Everything works fine.

    • @sthue1001
      @sthue1001  6 лет назад +1

      It is available in community editions. it is not available in older express editions. This opens it up to a lot more developers.Thanks for pointing that out! I think I corrected that in the next video.

    • @sthue1001
      @sthue1001  6 лет назад +1

      And thanks for watching!

  • @beginadobe
    @beginadobe 5 лет назад +2

    Hi,
    A suggestion:
    If I were you (and could do so) I would change the thumbnail for this video. There is an orange bar at the bottom of the thumbnail that looks like RUclips's process bar, which made me think that I have already checked this video until the end, which was of course not the case. :)

  • @AbdulSamad-fs5is
    @AbdulSamad-fs5is 2 года назад

    Please make a complete playlist on VSTO development with MS Excel With C#

  • @sergioalvarado364
    @sergioalvarado364 4 года назад +1

    OMG. Better than Udemy. good video.

  • @scotolivera8207
    @scotolivera8207 4 года назад

    Hello sir, are you planning to publish more videos concerning this topic, it's an interesting one, do you recommend any course or channel that covers something like that? very useful video

  •  3 года назад +1

    Hello, thank you for sharing.
    1-I created Exceladdin 1.sln with Visual studio 2019 and I know how to add a tab to the excel program on my computer.
    2- I created Setup (two files named setup.exe and Setup.msi)
    3- I copied these files to another computer and installed them. All files are output to a folder. (ExcelAddIn1.vsto and many dll files)
    The problem is: the plugin is not available in excel. Can you share a document that tells me about setup from start to finish? Thank you so much.

    • @sthue1001
      @sthue1001  3 года назад +1

      Thanks. I do have another video about creating an add in install. It is in my videos. Thanks for watching.

    • @sthue1001
      @sthue1001  3 года назад +1

      sorry i read this on the road and missed key parts. I dont remember a document. It has always worked for me. Are you sure you have the same versions of excel? I have never checked cross compatibility.

    •  3 года назад

      @@sthue1001 You are right. I did not check this either.

  • @pointec9009
    @pointec9009 7 лет назад +1

    Awesome!!!! thank you!!! you change my life and my works - i will use it to create my windowsforms and record in my excel sheets - goodbye userforms in VBA - have a long and good life

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

    Thanks very much under the low-materials for VSTO examples. haha

  • @freemax32
    @freemax32 5 лет назад +1

    Stephen, you helped me a lot. Thanks a lot!

  • @СергейДрузь-ь3ж
    @СергейДрузь-ь3ж 5 лет назад

    How to solve this issue?
    Severity Code Description Project File String suppression Status
    Error CS1061 "ThisAddIn" does not contain the definition of "InternalStartup" and cannot find an available extension method "InternalStartup" that takes type "ThisAddIn" as the first argument (possibly missing a using Directive or Assembly reference). HelloWorld C:\Users\USER\source
    epos\HelloWorld\HelloWorld\ThisAddIn.Designer.cs 58 Active

    • @sthue1001
      @sthue1001  5 лет назад

      I have not run into that: A naming issue?
      social.msdn.microsoft.com/Forums/en-US/3b94e9c3-189f-4d31-bd19-b8d4dfba2f7c/thisaddin-does-not-contain-a-definition-for-startup-and-no-extension-method-startup?forum=vsto

  • @TheWatchover07
    @TheWatchover07 5 лет назад +1

    Could you create a video using OutLook? creating a bottom to grab Body, Subject, To, From and move that data to a file?

    • @sthue1001
      @sthue1001  5 лет назад +1

      I actually was working on something similar a year ago, but go busy with other stuff. I ll see if I get some time to revisit the project. I own some rental property and whenever I buy something from Home depot I email the receipts to myself. Wanted to create a addin that will grab the date of receipt, subject line and and contents of receipt into csv. Not sure when I can get to this.

  • @martinpetrey
    @martinpetrey 6 лет назад

    Steven, great video. Thanks so much for taking the time. Question...Excel 2016 on my machine doesn't seem to want to load the add-in when I click Start. I've built it just as you did and it seems to compile fine, but it will not load. I tried ti load it manually, but that won't work either. Any suggestions? Is there some trust setting I may have set wrong in VS or Excel? Thanks.

    • @sthue1001
      @sthue1001  6 лет назад

      Sorry did not see your question. Sometimes addins get disabled, this is in the options menu.

  • @cyruscempron3233
    @cyruscempron3233 7 лет назад +1

    Awesome stuff! Would you add some data binding to listobjects & how to publish when updated? Thank you

    • @sthue1001
      @sthue1001  7 лет назад

      I made a video on creating a install package ruclips.net/video/_eY8k6cPuLA/видео.html. Hope this is what you are looking for.

  • @MorselOfBread
    @MorselOfBread 7 лет назад +2

    That was really good. Thank you!

  • @andrewcrawfordacr2529
    @andrewcrawfordacr2529 7 лет назад

    Sorry, but my autocomplete does not duplicate you code. I wish I had your code to compare, but "private Excel.range" has Excel.range unlined with a red squiggly. Perhaps the version of the dll is different?

    • @sthue1001
      @sthue1001  7 лет назад

      What is the timestamp?

  • @victorhoulet2331
    @victorhoulet2331 5 лет назад

    Hi, the video is great thank you. Do you know how to link your VSTO project so that it starts in an existing workbook and not a blank one by any chance?

    • @sthue1001
      @sthue1001  5 лет назад

      The add in should be there when you open an existing workbook. If not, check to make sure it is not disabled.

  • @SeMeDuO
    @SeMeDuO 6 лет назад

    hello, I'm new to creating this kind of programs and everything was running well but when i publish it and try to install it on another machine I cant get the add in to show on the bar or even on the list of add ins when you go to manage com add ins in the options. is there anything i'm missing to make it run?

    • @sthue1001
      @sthue1001  6 лет назад

      That is weird. Maybe, check to make sure you have the correct version of Office on the target machine.

  • @1Pratzo1
    @1Pratzo1 5 лет назад

    Would you please tell me how the HELLO World gets into the current selected cell? What code is needed?

    • @sthue1001
      @sthue1001  5 лет назад

      currentSheet.Range["A1"].Value="Hello World"; is where it selects the range. Thanks for watching!

  • @wlfente
    @wlfente 6 лет назад

    Is there anyway to target a specific workbook and create a custom ribbon for that workbook only (Vs. an add-in) via VSTO?

    • @sthue1001
      @sthue1001  6 лет назад

      This one is the basic 'intro' video which only shows how to get a hold of worksheet. My Visual Studio Tools for Office C# Addin Embedded Chart video starts out by, putting in the addin, how to get a hold of the work book and application. Not specifically what you are asking for, but it would be a start. Good luck and thanks for watching!

  • @vkpunique
    @vkpunique 5 лет назад

    Hey i've made document document level addin using visual studio 2017 but don't know how to create installer so user can install it to any location they want ,can you help me with that?

    • @sthue1001
      @sthue1001  5 лет назад

      I do have a video in my playlist on making an installer. Not sure if it is what you are looking for.

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

    I have vsto addins and want to call that ribbon function using VBA, so how will I do?

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

      Interesting. Im sure it is possible, but probably will not be easy.

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

      @@sthue1001 lt would be great if you make video for this

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

      @@riteshmathur9221 I think VSTO is now deprecated, which is sad. They want to replace it with java. My career went into a different direction so I am writing automated web tests now.

  • @ΣαββαςΝικιτιδης
    @ΣαββαςΝικιτιδης 3 года назад

    Hello,who can to help me? 1:56 I dont understand this step

  • @crjack6528
    @crjack6528 4 года назад +1

    不错的教程。

  • @LouisAndersen
    @LouisAndersen 6 лет назад

    Good video! Could be nice if you explained why you do different stuff. Like what do the different 'using' do. What does 'Globals' mean and so on. but then i guess the vid would become too long.

    • @sthue1001
      @sthue1001  6 лет назад +1

      You are correct. Not sure how long a video can be before everybody nods off. I think I approach it! Thanks for watching!

  • @jumbo999614
    @jumbo999614 6 лет назад +1

    Is VSTO a replacement for VBA? I still don't know the concept.

    • @sthue1001
      @sthue1001  6 лет назад +1

      Not sure is the best answer I can come up with.Up to VS2013 you needed at least pro version to program in it. VBA is free. VBA has not had any updates since at least the early 2000s. There are a lot more people that write in VBA. There is a learning curve when switching to .net that a lot of VBA people will not try to climb. VSTO in VS2005 was so new and hard to use. VS 2010 was where VSTO really started to work well. So if it was a replacement it took forever to roll out to a version that works well. I think it is more for .net people to write addins and stuff for Office.

    • @sthue1001
      @sthue1001  6 лет назад +1

      I think MS wants people to go to Web Add Ins. Here is a good explanation ruclips.net/video/Z0kBiHR2ZJU/видео.html

  • @-Harambe
    @-Harambe 7 лет назад +1

    Great great great tutorial. thank you!!

  • @singhswat
    @singhswat 7 лет назад +1

    Great, Thanks!

  • @uc03_amtrunguc49
    @uc03_amtrunguc49 2 года назад

    Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.Excel.Worksheets'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208B1-0000-0000-C000-000000000046}'
    help me fix error

  • @maxbiz6351
    @maxbiz6351 7 лет назад +1

    Thx a lot, please do more videos.

    • @sthue1001
      @sthue1001  7 лет назад

      Thanks! Check out my other videos on my channel for more.

  • @СергейДрузь-ь3ж
    @СергейДрузь-ь3ж 5 лет назад +1

    ...thnx a lot

  • @vtecheee4432
    @vtecheee4432 7 лет назад

    (Thank you.. video for How to deploy Office plug-in ( create a setup package

    • @sthue1001
      @sthue1001  7 лет назад +1

      I made a video on creating a install package ruclips.net/video/_eY8k6cPuLA/видео.html. Hope this is what you are looking for.

  • @ganzewelt1896
    @ganzewelt1896 6 лет назад

    😵 19min could, and should have been squeezed into five