| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files/LibreOffice/help/en-US/text/scalc/guide/ |
Upload File : |
<!DOCTYPE html> <html lang="en-US" dir="ltr"> <head> <base href="../../../../"> <noscript><meta http-equiv="refresh" content="0; URL=../../../../en-US/noscript.html"></noscript> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Inserting External Data in Table (WebQuery)</title> <link rel="shortcut icon" href="media/navigation/favicon.ico"> <link type="text/css" href="normalize.css" rel="Stylesheet"> <link type="text/css" href="prism.css" rel="Stylesheet"> <link type="text/css" href="default.css" rel="Stylesheet"> <script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="languages.js"></script><script type="text/javascript" src="en-US/langnames.js"></script><script type="text/javascript" src="flexsearch.debug.js"></script><script type="text/javascript" src="prism.js"></script><script type="text/javascript" src="help2.js" defer></script><script type="text/javascript" src="a11y-toggle.js" defer></script><script type="text/javascript" src="paginathing.js" defer></script><script type="text/javascript" src="en-US/bookmarks.js" defer></script><script type="text/javascript" src="en-US/contents.js" defer></script><script type="text/javascript" src="help.js" defer></script><meta name="viewport" content="width=device-width,initial-scale=1"> </head> <body> <header id="TopLeftHeader"><a class="symbol" href="en-US/text/shared/05/new_help.html"><div></div></a><a class="logo" href="en-US/text/shared/05/new_help.html"><p dir="auto">LibreOffice 24.2 Help</p></a><div class="dropdowns"><div class="modules"> <button type="button" data-a11y-toggle="modules-nav" id="modules" aria-haspopup="true" aria-expanded="false" aria-controls="modules-nav">Module</button><nav id="modules-nav" hidden=""></nav> </div></div></header><aside class="leftside"><input id="accordion-1" name="accordion-menu" type="checkbox"><label for="accordion-1" dir="auto">Contents</label><div id="Contents" class="contents-treeview"></div></aside><div id="SearchFrame"><div id="Bookmarks"> <input id="search-bar" type="search" class="search" placeholder="Search in bookmarks for chosen module" dir="auto"><div class="nav-container" tabindex="0"><nav class="index" dir="auto"></nav></div> </div></div> <div id="DisplayArea" itemprop="softwareHelp" itemscope="true" itemtype="http://schema.org/SoftwareApplication"> <a name="bm_id3154346"></a><meta itemprop="keywords" content="HTML WebQuery"> <meta itemprop="keywords" content="ranges, inserting in tables"> <meta itemprop="keywords" content="external data, inserting"> <meta itemprop="keywords" content="tables, inserting external data"> <meta itemprop="keywords" content="web pages, importing data"> <meta itemprop="keywords" content="WebQuery filter"> <meta itemprop="keywords" content="inserting, external data"> <meta itemprop="keywords" content="data sources, external data"> <p id="par_id3154346" class="paragraph" dir="auto"></p> <h1 id="hd_id3125863" dir="auto"> <a name="webquery"></a>Inserting External Data in Table (WebQuery) </h1> <p id="par_id3155131" class="paragraph" dir="auto">With the help of the <span class="emph">Web Page Query (LibreOffice Calc)</span> import filter, you can insert tables from HTML documents in a Calc spreadsheet.</p> <p id="par_id3148575" class="paragraph" dir="auto">You can use the same method to insert ranges defined by name from a Calc or Microsoft Excel spreadsheet.</p> <p id="par_id3149664" class="paragraph" dir="auto">The following insert methods are available:</p> <h2 id="hd_id3146976" dir="auto">Inserting by Dialog</h2> <ol itemprop="HowTo" itemscope="true" itemtype="http://schema.org/HowToSection" dir="auto"> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3154319" class="listitem" dir="auto">Set the cell cursor at the cell where the new content will be inserted.</p> </li> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3145750" class="listitem" dir="auto">Choose <span class="emph">Sheet - External Links</span>. This opens the <a target="_top" href="en-US/text/scalc/01/04090000.html">External Data</a> dialog.</p> </li> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3149958" class="listitem" dir="auto">Enter the URL of the HTML document or the name of the spreadsheet. Press Enter when finished. Click the <span class="emph">Browse</span> button to open a file selection dialog.</p> </li> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3149400" class="listitem" dir="auto">In the large list box of the dialog, select the named ranges or tables you want to insert.</p> </li> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3155064" class="listitem" dir="auto">You can also specify that the ranges or tables are updated every n seconds.</p> </li> </ol> <p id="par_id3155443" class="paragraph" dir="auto">The import filter can create names for cell ranges on the fly. As much formatting as possible is retained, while the filter intentionally does not load any images.</p> <h2 id="hd_id3149021" dir="auto">Inserting by Navigator</h2> <ol itemprop="HowTo" itemscope="true" itemtype="http://schema.org/HowToSection" dir="auto"> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3153965" class="paragraph" dir="auto">Open two documents: the LibreOffice Calc spreadsheet in which the external data is to be inserted (target document) and the document from which the external data derives (source document).</p> </li> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3150205" class="paragraph" dir="auto">In the target document open the Navigator.</p> </li> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3152990" class="paragraph" dir="auto">In the lower combo box of the Navigator select the source document. The Navigator now shows the range names and database ranges or the tables contained in the source document.</p> </li> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3148842" class="paragraph" dir="auto">In the Navigator select the <span class="emph">Insert as link</span> drag mode <img src="media/icon-themes/cmd/sc_insertbookmark.svg" class="iconimage" alt="Icon" style="width:21px;height:21px" itemprop="icon" itemscope="true" itemtype="http://schema.org/ImageObject">.</p> </li> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto"> <p id="par_id3157978" class="paragraph" dir="auto">Drag the desired external data from the Navigator into the target document.</p> </li> </ol> <p id="par_id3144768" class="paragraph" dir="auto">If you have loaded an HTML document with the <span class="emph">Web Page Query</span> filter as the source document, you will find the tables in the Navigator, named continuously from "HTML_table1" onwards, and also two range names that have been created:</p> <ul itemprop="Unordered" itemscope="true" itemtype="http://schema.org/ItemList" dir="auto"> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/ItemListUnordered" dir="auto"> <p id="par_id3152873" class="listitem" dir="auto"> <span class="literal">HTML_all</span> - designates the entire document</p> </li> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/ItemListUnordered" dir="auto"> <p id="par_id3149897" class="listitem" dir="auto"> <span class="literal">HTML_tables</span> - designates all HTML tables in the document</p> </li> </ul> <h2 id="hd_id3149126" dir="auto">Editing the external data</h2> <ul itemprop="Unordered" itemscope="true" itemtype="http://schema.org/ItemList" dir="auto"> <li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/ItemListUnordered" dir="auto"> <p id="par_id3159228" class="listitem" dir="auto">Open <span class="emph">Edit - Links</span>. Here you can edit the link to the external data.</p> </li> </ul> <a name="relatedtopics"></a><div class="relatedtopics"> <p class="related" itemprop="mentions" dir="auto"><a name="related"></a><span class="emph">Related Topics</span> </p> <div class="relatedbody" itemprop="mentions"> <p id="par_id3154650" class="paragraph" dir="auto"><a target="_top" href="en-US/text/scalc/01/04090000.html">External data dialog</a></p> <div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="en-US/text/scalc/guide/cellreferences_url.html">Referencing URLs</a> </p></div> </div> </div> </div> <div id="DonationFrame"></div> <footer><div id="DEBUG" class="debug"> <h3 class="bug">Help content debug info:</h3> <p dir="auto">This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/scalc/guide/webquery.xhp" target="_blank">/text/scalc/guide/webquery.xhp</a></p> <p dir="auto">Title is: Inserting External Data in Table (WebQuery)</p> <p id="bm_module" dir="auto"></p> <p id="bm_system" dir="auto"></p> <p id="bm_HID" dir="auto"></p> </div></footer> </body> </html>