VBA Excel Save to PDF includes blank(hidden) pages. - excel

I have a document which contains Yes/No drop downs for sections of the page to be included within the pdf when it's saved.
However once the rows are hidden, when I save as a PDF they are still included as a blank page. Does anyone know a way around this?
LINK TO GOOGLE DRIVE

Related

When exporting Excel to PDF, transform multiple URLs in one cell into multiple hyperlinks

I have seen a lot of answers about creating URLs when exporting from Excel to PDF, but in my case I don't have ONE URL in each cell, I can have MULTIPLE URLs in one cell ! (But they are only text, since Excel can't support 2 clickable links in one cell).
I have a document with multiple cells which each contains multiple links inside.
For example, a cell could contain :
[http://google.com
http://facebook.com]
(The brackets are not in the cell, and there is a new line character (alt+enter) between the links.)
These links are not clickable in Excel, because it is not possible to have 2 clickable links in one cell in Excel.
I want to export the cells to PDF with a macro (using Range(...).ExportAsFixedFormat), and I would like those links to become clickable.
Is there a way to make those links clickable in the PDF created, since they are a text URL ?
(For example, is there an option when I export to say "if you see a string which look like a URL, make it clickable" ?)
I appreciate if you know how to solve this.
Let me know if I can give you more information.

How to grab numbers from chart in powerpoint with broken link to excel sheet

I have a Powerpoint file that has been emailed to me. It has a chart with selectable columns and labels, indicating that it's not just an image. When I try to edit the chart in order to extract the data, I get the message "The linked file is not available. To edit the link, click the File tab. Click the info tab, and then under Related Documents, click Edit Links to Files."
If i click Open Source, it says it can't find it. If I click Break Link, it's no longer editable when right clicking the table.
The data must be in there since it's displaying the values. How can I extract the data?
Generally, what you see on screen is a metafile picture of the linked chart or other content. The data behind it is unavailable if the link's broken or missing. You may be able to get what you want by ungrouping the chart (or better, a copy of it). You'll probably need to ungroup a few times, but you should be able to access the text (as individual, unrelated text boxes).

Excel power view sheet comes out blank when printing

When I try to print a power view sheet it comes out blank (no ink on the paper), even though the print preview shows the sheet nicely.
See image below (secret stuff is blurred out):
According to Microsoft themselves it should be possible to both print and export (to pdf) a power view sheet.
Many other sites also claim that it should be possible, e.g. https://www.tutorialspoint.com/excel_power_view/excel_power_view_sharing.htm
I have tried both options though, and it comes out blank on paper when printing, and when exported just shows a blank pdf page.
I ended up contacting Microsoft support and I was told that it is only possible to print an image of the current view if the Excel document is on a SharePoint server.

Convert only 1st Word document page to PDF

I'm using Office 2010 interop and C# 4. How can I convert just the 1st page of a word document to PDF? This question ("How do I convert Word files to PDF programmatically?") helped me to get started but it only shows me how to save the whole document as PDF.
Is there a way:
to save just the 1st page as PDF? (most ideal option)
delete all remaining pages and then save as PDF?
How do I go about doing it?
You can click on Save As, change the type to PDF, and above the "save" button, you have an option button. Click on that, and you should have the choice to select which pages you want to convert to PDF.
Use the SaveasPdf option and save the entire document to Pdf.
To get the first page you can use PDFSharp opensource library for processing PDF using C#.
Here is an example to split pdf documents.
In case it's helpful for someone, in Word 2016, select Save As option, choose PDF as the file format, on this same window once you've done this a new button 'Options' then will appear to the left of the OK button, click on this and choose the page range that you want save.
Using Document.ExportAsFixedFormat is more like it -> MSDN
Then you simply write something like this:
doc.ExportAsFixedFormat(path, WdExportFormat.wdExportFormatPDF, Item: WdExportItem.wdExportDocumentWithMarkup, CreateBookmarks: WdExportCreateBookmarks.wdExportCreateHeadingBookmarks,
Range: WdExportRange.wdExportFromTo, From: 1, To: 1);

excel spreadsheet data to web form

I'm looking to place my company's trailer inventory on a few free classified ad sites. Our inventory database (filemaker) can export data into an excel spreadsheet (column A-Make, B-Model, C-Year, etc.) including the URLs of the photos of each trailer.
Our dealer sites allow for bulk uploading through XML and that works great.
My problem is on the smaller free classified ad sites that have a web form that needs filled out (the example I'm using here has text fields and drop-down menus, but other sites have check boxes and radio buttons) then submitted for each individual trailer (about 90 trailers). I'm wondering how I can use the data in my spreadsheet to auto-fill the form with the information in row 1, submit it, re-navigate back to the form and repeat the process with the info in row 2 and so on. I know that I'm going to have to tailor my data and columns to fit each site (match column names to field names and change relevant data to match drop down options, etc.).
**edit Also (although not necessary) it would be nice if it was possible to have my photo URLs entered as well (if at all possible).
I've created a "test" account on http://www.horseclicks.com. Once logged in you have to click on "My Trailers" on the left and then the "add" button
user: excelhelp
pass: excel
Any takers??
This doesn't completely answer your question, but would save you some time entering the forms manually. If you know the names of input tags on the form you want to fill out, you can write a Javascript that will fill out the form for you: i.e., document.getElementById('your_name').value=Name[x]; etc.
In that example, Name would be an array that would contain a list of the names you wanted to put in the input field "your_name". You can easily turn an Excel sheet into a Javascript array by exporting to CSV and cut/paste into your code. Make it so that the value of x increases by 1 each time the script is ran.
Take your whole javascript, and turn it into one line that starts with "javascript:" and place this as a bookmark in your toolbar. Now you can go to the form, hit the your bookmark button and it will fill out the form. Hit submit, go back to the form, hit the button again...

Resources