Contents
Index 🔎︎

# Inserting External Data in Table (WebQuery)

With the help of the Web Page Query (LibreOffice Calc) import filter, you can insert tables from HTML documents in a Calc spreadsheet.

You can use the same method to insert ranges defined by name from a Calc or Microsoft Excel spreadsheet.

The following insert methods are available:

## Inserting by Dialogue

1. Set the cell cursor at the cell where the new content will be inserted.

2. Choose Sheet - Link to External Data. This opens the External Data dialog.

3. Enter the URL of the HTML document or the name of the spreadsheet. Press Enter when finished. Click the ... button to open a file selection dialogue.

4. In the large list box of the dialogue, select the named ranges or tables you want to insert.

5. You can also specify that the ranges or tables are updated every n seconds.

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.

## Inserting by Navigator

1. 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).

2. In the target document open the Navigator.

3. 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.

4. In the Navigator select the Insert as link drag mode .

5. Drag the desired external data from the Navigator into the target document.

If you have loaded an HTML document with the Web Page Query 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:

- HTML_all - designates the entire document

- HTML_tables - designates all HTML tables in the document

## Editing the external data

- Open Edit - Links. Here you can edit the link to the external data.

Related Topics

External data dialogue

Referencing URLs