Google Sheet to PDF MailTo: Part 2 - pdf

First-timer here trying to modify code to fit my needs without any coding training. I borrowed the following google sheet to pdf mailto script from another poster (Kelvin Chong).
I am able to successfully send an email to myself with an attached PDF, but the PDF is blank. I'm apparently missing something when it comes to the script retrieving the active spreadsheet. The Google Sheet I am trying to send as a PDF is only a single sheet and I have tried both the SpreadsheetApp.openByUrl() and SpreadsheetApp.getActiveSpreadsheet() options. Neither method gives me an error when I run the script and, like I said, it emails me a PDF...it's just blank. Oh, and yes, when running the openByUrl I did enter the URL of the spreadsheet and have checked to make sure it is open for anyone to view.
Any help would be greatly appreciated. Thanks in advance!

Nevermind...I figured it out through some trial and error. Basically, the original programmer wrote the script so that it would send a zip file. Another programmer modified the script so that it would only send an individual sheet. When I started tinkering, I noticed that the zip file would have a blank page and then the actual pdf. Once I realized this, I just tinkered a little with the code to only focus on that second sheet. All is well now!

Related

Get the name of last edited user and date of time using vba in shared drive

Please I need help. I have an excel file in a shared drive in my workplace used by many people. I want to display the name of the last user who edited and saved the file in one cell in the file and date and time of edit in another cell in the file. Display to be refreshed whenever document is saved. I will appreciate the full code and directions to paste the code to get it working as I am not good with programming.
Code I researched from the internet and pasted only gets my name and couldnt get others when they work on the file. Will appreciate any help I can get

pdf table to excel in Automation anywhere

I am trying to get PDF tables in excel for further processing in Automation anywhere.I tried it like converting PDF to text and then to excel but it not working as required.
Please suggest if anyone did this.
Thanks all who replied and tried to help.
But, i got the solution as there is bot already for this in botstore of AA and we can use it.
We can use this metabot and logic to perform action.
PFB link for the same:
https://botstore.automationanywhere.com/bot/pdf-to-excel/
I think you can use OCR inbuild tool or PDF read tools and take those data items into the variables. And then try to use keystrokes (or other) to add those variables as text in textfile. As well as add those items to the excel sheet. try it.

Random line on excel document

Every time I create an excel document I get a random line appearing when printing or when exporting to PDF.
I have attached a photo and as you can see the line appears about half way down the second page.
I have cleared all borders and even remade the document on a different workbook but the issue still persists.
Any help would be greatly appreciated as I have to send PDF files to customer and it looks incredibly unprofessional.
Many Thanks

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.

Word Automation Service breaks links in table of contents

I have written a code which utilizes Word Automation Service in order to convert the .DOCX file to the .PDF. I have noticed that in case the Word document contains a table of contents, its links are removed in the PDF. This is very bad for my business case.
On the other hand, manually opening MS Word and saving the same document as PDF preserves the links in the table of contents. This is the behavior I am looking for, but I want to keep my code independent form having MS Office Word installed on the machine running my code.
Has anyone had the similar issue and was anybody able to resolve it?
In my case, i found out that this is something related to Job Settings property. Try to comment or remove this line of code if you have one:
jobSettings.UpdateFields = true;