Forum Discussion
pdramorim
Apr 09, 2019Brass Contributor
Get external data from web not showing
Hello, I am trying to link external information from a url to my Excel spreadsheet, but for whatever reason the "Get data from Web" option is not showing up on my menu. Does anyone have any idea ...
JeanPaulGedeon
Mar 09, 2022Copper Contributor
This works
https://www.youtube.com/watch?v=QH2Dx5LgkJg&ab_channel=DSMStrength
https://www.youtube.com/watch?v=QH2Dx5LgkJg&ab_channel=DSMStrength
- Raffy777Jan 06, 2024Copper Contributor
Hey JeanPaulGedeon did you read the other posts? We are looking for a solution to automatically pull data from a Google sheet to excel on Mac OSx
- JimGMacJan 07, 2024MVPGoogle sheets are not HTML tables, so web query will not work. Copy and paste from Google sheets does work. There is a web browser called OmniWeb that is scriptable. In theory, you could write an Applescript that copies a range from OmniWeb and pastes it into an Excel worksheet. I haven't test this, however.
- JimGMacJan 07, 2024MVPI just tested and the following code works. Assume I already selected a range of cells in Omniweb and want to copy and paste that range and put it into Excel. This is just the core code. You'd need to decide just how much automation you want.
This is the code:
tell application "OmniWeb" to activate
tell application "System Events"
tell process "Omniweb"
keystroke "c" using command down
keystroke tab
end tell
end tell
delay 0.3
tell application "Microsoft Excel" to activate
tell application "System Events"
tell process "Microsoft Excel"
keystroke "v" using command down
keystroke tab
end tell
end tell