Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

416
Visualizações
Converting Excel VBA Add-Ins to Office JS Add-In - Can it do what I need?

I've spent the last two weeks getting my Office JS Add-In dev environment setup, what a pain! Before I keep spending more time on it, I wondered if the Office JS can even do some of the things I need to replace my VBA Add-Ins.

Things include:

  • I often scrape web page tables, I'm pretty sure I can do this w/ JS
  • I have some macros that need to interact with webpage before scraping, such as input data and click a button, can Office Add-In interact with an external webpage in this fashion?
  • I have a bunch of macros which fire off a URL w/ params that spits back a Spreadsheet either in the format of downloading an xlsx or Excel just opens the spreadsheet. I currently have two macros for this, one finds the file on the FileSystem and imports it, the other, finds the Excel instance (separate from the open/existing instance) and imports the spreadsheet. I have a feeling Office JS can't do either of these, but I can possibly look into converting these to scraping, but I'm not 100%.
  • Is there a way for me to import my VBA Add-In via a JS Add-In (I don't think so since I don't have FS access from JS, but that would resolve any issues I can't do in JS).

The reason I'm looking to port away from VBA is I don't think Corp likes the idea of investing in VBA, for one, its hard to find/hire VBA Devs and another is its all "unsupported" though I've got my deployment 100% figured out. If I could host Add-Ins via official channels in a "normal" programming language, they might be more interested, but I'm unsure if Office JS is the way to go?

Thanks for the input!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Looking at your points covered in the post you really need to develop a COM add-in, not a web add-in. You can easily port your VBA macros to VSTO based add-ins where you could be using a "normal" programming language of your preference (I personally prefer using C# for COM add-ins).

There is no "automatic conversion", although to a certain extent you can copy/paste the procedures then "tweak" them for their new environment. Certainly, the simplest is to use VB.NET to create the VSTO project, rather than C#. That's because VBA and VB.NET have a similar syntax.

Then you need to decide whether you want an add-in, or a document-specific project.

Finally, you may find the Extend Your VBA Code With VSTO article helpful.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda