May 24 2023 03:23 AM
Hi team
Like lots of others, I have a wide range of Excel macros that are not going to work in Excel Online. On the web I've read I can use scripting, JavaScript and Python.
Does anyone know if these are really alternatives and maybe give a recommendation with the reason why.
Many thanks for this.
James
May 24 2023 05:20 AM
SolutionLet's explore the options you mentioned:
Ultimately, the choice between scripting with JavaScript or using Python or VBA depends on the specific requirements of your macros and the level of integration needed with Excel Online.
Whatever the choice of torment is yours :).
May 24 2023 06:49 AM
May 24 2023 08:23 AM
In Excel Online, you can run a script by adding a button to the worksheet, which triggers the execution of the script when clicked.
Here's how you can do it:
Once you have assigned the script to the button, you can click on the button in Excel Online to run the script.
Note that scripting in Excel Online is based on JavaScript and uses the Office JavaScript API. You can write your custom functions and logic using JavaScript and interact with the Excel workbook, ranges, and other objects through the provided API.
It's worth mentioning that scripting in Excel Online has some limitations compared to VBA macros in the desktop version of Excel. Therefore, not all macros can be directly converted to scripts. However, you can achieve many automation tasks and customizations using scripting in Excel Online.
May 25 2023 07:24 AM
May 25 2023 01:58 PM
Apr 08 2024 09:35 AM
Apr 08 2024 09:37 AM
@NikolinoDE I want to do web scrapping using vba macro which version of selenium use with chrome it’s not working properly with me can u please guide
Apr 08 2024 10:38 AM
If you're looking to perform web scraping using VBA macro, you can indeed use Selenium with VBA to automate interactions with a web browser such as Chrome. Here's a general guide on how to set it up:
Vba code is untested, please backup your file.
Sub WebScrapingWithSelenium()
Dim bot As New WebDriver
bot.Start "chrome" ' You can also use "firefox" or "edge"
bot.Get "https://example.com"
' Find elements and interact with them
Dim element As WebElement
Set element = bot.FindElementById("some_element_id")
Debug.Print element.Text
' Perform other actions as needed
' Quit the browser when done
bot.Quit
End Sub
Make sure to replace "https://example.com" with the URL of the webpage you want to scrape, and "some_element_id" with the ID of the HTML element you want to interact with or extract data from.
5. Run the Macro: Run the WebScrapingWithSelenium macro from Excel, and it should automate Chrome to perform the actions specified in your VBA code.
By following these steps and customizing the VBA code to suit your specific scraping needs, you should be able to perform web scraping using Selenium with VBA in Excel.
NOTE: My knowledge of this topic is limited. The text and the steps are the result of various AI's. Maybe it will help you further in your project, if not please just ignore it.
Apr 10 2024 10:30 AM
@NikolinoDE thanks a ton pal i will get back to you after performing this right now im out for a fortnight can i also hv your personal email id
May 24 2023 05:20 AM
SolutionLet's explore the options you mentioned:
Ultimately, the choice between scripting with JavaScript or using Python or VBA depends on the specific requirements of your macros and the level of integration needed with Excel Online.
Whatever the choice of torment is yours :).