Convert HTML-table to Excel - vba

I am trying to convert an HTML-table to an Excel table. The problem is that Excel changes the table in the following way:
Text converted to date
Numbers in parentheses are now negative.
Numbers are rounded or truncated.
All horizontal lines are removed.
Below is an example of a HTML-table opened in Excel 2016 by right-clicking the table, choosing "open with excel".
Is this possible to do? (without having manually revert the changes).
Example table
The raw html table can be downloaded here:
https://raw.githubusercontent.com/rasmusrhl/stuff/master/table.html
and as webpage here:
https://rasmusrhl.github.io/stuff/

I can solve one of your issues. Sorry about the others :(
Open Excel and create a new empty spreadsheet
Choose From Web on the Data ribbon Enter the URL of your HTML
Click Go to load the HTML
Click Options in top-right of the toolbar
Tick Disable date recognition
Now click Import

Related

What is the query parameter used by Google for setting custom headers in the exported pdf?

Using Google Sheets and working on a script to make exporting (downloading) a PDF copy of a single sheet much easier. The end goal is to emulate the Download as... PDF, but click of a button and it's done, without having to go to the menu. Also uses a custom file name (which includes the date and time).
The question...
When exporting a sheet using a script, is there a way to customize the content of the headers? I know when doing it manually, I can customize what appears in the headers and footers, but what about a script to change the top (or bottom) left/center/right areas when exporting a PDF via script? I know I can optionally enable a title (printtitle=true) or sheet name (sheetnames=true), but I can't find anything to permit me to customize what appears.
What I would like is to have a custom name/string for the top left and top center, then the date and time in the top right.

hyperlink inserted with pandas need edit before working libreoffice

hyperlink inserted with pandas need edit before working libreoffice:
(using .to_excel in pandas)
hyperlink are ok, but showing 0,
if I add a space, for example, then press Enter, the link will come "alive" and I will be able to click on the hyperlink as normal.
I searched google for any hyperlink issues in libreoffice, and I could not find any that relevant as permission for hyperlink is allowed in my libreoffice.

Word VBA to refresh embedded Excel chart

I have embedded charts in a Word doc. When I update the data in Excel, so that the chart in the Excel workbook updates, and then go to the Word doc, I can manually select the embedded chart, select Design > Refresh Data, and the embedded chart in Word updates to show the new data.
When I try to record the Word VBA to do that, it won't let me do those actions.
I've looked everywhere I can think of in Word's object browser. I see that I can identify the embedded chart like this:
thisdocument.InlineShapes(1)
But I don't see how to refresh it. What do I need to do?
I found the answer here:
http://answers.microsoft.com/en-us/msoffice/forum/msoffice_word-msoffice_custom/what-is-the-vba-equivalent-of-refresh-data-for/b8405aca-716a-e011-8dfc-68b599b31bf5
thisdocument.InlineShapes(1).LinkFormat.Update
It worked fine in my tests.
And to break the link (in the word template) after updating, to avoid inadvertently updating the chart to one from a later run showing different data:
thisdocument.InlineShapes(1).LinkFormat.BreakLink

How do i save Image(Jpg,Jpeg) file in excel for each cell

I want to attach a different image for different cells. SO far I am doing by attach the image via ("link"). I am facing some problem that whenever I try to send file I have to send the corrsponding path file . But sometimes its annoying that folders will be erased or moved . Can anyone give me an valuable suggestions, that I can save all my image in the file(excel) , whereas I can send only the excel sheet, when some one click the cell , corrosponding image boot from the cell(excel).
Is it possiible in excel, if it so please give me the instruction.
thanks in advance
The easiest way to do this is to save your file in older format, for example in Excel 97-2003. By default newer formats keep links, not pictures.
If you insert pictures via a macro, use something like the following:
Cells(1,1).AddPicture(FileName:="C:\1.jpg", SaveWithDocument:=True)
If you are using "insert picture" method via the insert tab in excel, within "insert picture" window you can choose "insert" at the bottom of the window. i'm not too sure how exactly it is called in English, but my translation is pretty close to what it might be.

Save excel as pdf changing its orientation to horizontal

I have an excel sheet with too many columns, so when I save it as a PDF the file its in too many pages and its not easy to read . I need to save the sheet as pdf but before I want to change its orientation to horizontal so I can read the pdf with no problem. Is the same you can do when you print but I want it when I save an excel file as pdf.
Is there any option I can choose?
I dont mind if someone gives me a code for a macro using my selection as an object.
Under the "Page Layout" tab, click the "Orientation" option and then select "Landscape."
Then create your PDF as usual.
You can save Excel files in PDF, even without using Excel. I use a program Universal Document Converter (http://www.print-driver.com/how-to/save-excel-as-pdf). This program allows you to quickly and easily create print-ready PDF-files on the basis of the original spreadsheets Excel.