excel-web-query

Last Zeros Truncated When Getting External Data

六月ゝ 毕业季﹏ 提交于 2020-06-23 16:17:31
问题 While importing data from the web in Excel 2019 choosing Data>Get Data>From Other Sources>From Web , the last (trailing) zeros of numbers are being truncated resulting in the following 'Import' column: EU Import | Desired 968,8 | 968800 891,01 | 891010 413,47 | 413470 410,3 | 410300 43,25 | 43250 17,8 | 17800 15,05 | 15050 3,61 | 3610 6,05 | 6050 4,9 | 4900 US Import | Desired 968.8 | 968800 891.01 | 891010 413.47 | 413470 410.3 | 410300 43.25 | 43250 17.8 | 17800 15.05 | 15050 3.61 | 3610 6

Automatically run data connections in XLSM

∥☆過路亽.° 提交于 2019-12-25 09:19:15
问题 I have an XLSM file which contains 2 Web Query connection. When I go to "Connections" in the "Data" tab I am presented with the two connections I have. For each of these I can edit some properties, one which says "Update every X minutes". I've set this to 1 minute and also ticked "Activate background update". This, however, won't work as the web query connections aren't run anyway. Ultimately what I need is to run these connections automatically once every hour. Preferably without any user

Why is Web Query not highlighting my table in Microsoft Excel 2010?

﹥>﹥吖頭↗ 提交于 2019-12-25 06:09:09
问题 I am looking to use Excel's Web Query feature to give users access to constantly changing datasets. Why not ODBC straight to the database? Well, there are several databases on several servers that I'm dealing with. To avoid granting users varying levels of complicated ODBC access, and to avoid then training those users on how to use ODBC to access the data they need, I thought I'd create a simple web app that outputs the data the users need in clean HTML tables. After creating the pages

CSS Formatting for Excel Web Query

和自甴很熟 提交于 2019-12-24 13:30:41
问题 I am having a hard time finding good documentation for this really handy feature of Excel. Please see the below code and jsFiddle for reference. This jsFiddle contains the following code: CSS body { font-family: calibri, san-serif; font-size:9pt; } td, th { white-space: nowrap; } .date { mso-number-format: "Short Date"; } .text { mso-number-format: "\@"; } .percent { mso-number-format: "Percent"; text-align:right; } .int { mso-number-format: "\#\,\#\#0"; text-align:right;} .account { mso

How to create web query on Mac Excel 2011?

心不动则不痛 提交于 2019-12-21 21:34:15
问题 I am trying to import data from a website on my worksheet, but when I click on import data from a new database query, it shows an error of saying: " Microsoft Query is not installed" I have searched every where but could not find the solution. Please help me out.. 回答1: The process is a bit different on the mac. In the Finder, go to /Applications/Microsoft Office 2011/Office/Queries Open any file you see there in a text editor Replace the URL with your query URL Save as a new file back in that

Excel VBA web source code - how to extract multiple fields to one sheet

落花浮王杯 提交于 2019-12-18 07:19:34
问题 Good afternoon guys. In a follow up to a previous query which was very much solved by QHarr, I was wanting to run the solved query against multiple fields from the source code rather than just one. The URL I am using is: https://finance.yahoo.com/quote/AAPL/?p=AAPL and the VBA code which takes the 'Previous Close' price is: Option Explicit Sub PreviousClose() Dim html As HTMLDocument, http As Object, ticker As Range Set html = New HTMLDocument Set http = CreateObject("WINHTTP.WinHTTPRequest.5

Pull tabular data from multiple web pages into workbooks

半世苍凉 提交于 2019-12-08 03:42:03
问题 I am trying to write a macro in VBA that will pull data tables a number of web pages into excel. A new workbook would be created for each web page/table. There is one table for each web page, and each page has the same layout. The url for each page has the same format, with a numerical identifier at the end of the url. Unfortunately the site itself is password protected. So far I have been able to record a macro where I create a web query for a single page/table. At this point I am having

Can I get the stream from an Excel VBA Web Query?

浪尽此生 提交于 2019-12-07 17:22:21
问题 I am using Excel VBA's WebQuery, using something similar to this example: (This example is actually copy-pasted from here: http://support.microsoft.com/kb/213730 and I am using a different URL with different POST arguments) Sub URL_Post_Query() With ActiveSheet.QueryTables.Add(Connection:= _ "URL;http://webservices.pcquote.com/cgi-bin/excel.exe", _ Destination:=Range("a1")) .PostText = _ "QUOTE0=[""QUOTE0"",""Enter up to 20 symbols separated " & _ "by spaces.""]" .BackgroundQuery = True

Pull tabular data from multiple web pages into workbooks

谁都会走 提交于 2019-12-06 14:49:48
I am trying to write a macro in VBA that will pull data tables a number of web pages into excel. A new workbook would be created for each web page/table. There is one table for each web page, and each page has the same layout. The url for each page has the same format, with a numerical identifier at the end of the url. Unfortunately the site itself is password protected. So far I have been able to record a macro where I create a web query for a single page/table. At this point I am having trouble figuring out how to make the process repeat for a large number of pages, and how to write the

Can I get the stream from an Excel VBA Web Query?

Deadly 提交于 2019-12-06 03:55:53
I am using Excel VBA's WebQuery, using something similar to this example: (This example is actually copy-pasted from here: http://support.microsoft.com/kb/213730 and I am using a different URL with different POST arguments) Sub URL_Post_Query() With ActiveSheet.QueryTables.Add(Connection:= _ "URL;http://webservices.pcquote.com/cgi-bin/excel.exe", _ Destination:=Range("a1")) .PostText = _ "QUOTE0=[""QUOTE0"",""Enter up to 20 symbols separated " & _ "by spaces.""]" .BackgroundQuery = True .TablesOnlyFromHTML = True .Refresh BackgroundQuery:=False .SaveData = True End With End Sub I need to be