Macros to copy content in Google docs and paste to new Google docs - documentation

how can I use macros to copy the content of one Google Doc to a new doc?
Context : we currently write meeting minutes weekly; then we duplicate this doc to write for the next week.

You might try creating a long running version of the minutes doc instead of copying.

Related

MS Word macro to search for and combined specific files into one document

I have encountered a stumbling block that exceeds my experience in working with MS Word macros. Until recently, I have not had much need to use macros in Word or Excel, and what little bit I have needed was completely internal to the document or spreadsheet.
Now I find myself needing guidance on creating a macro that will draw on external files to create a temporary new file.
Within a working folder, I have a Master Document and numerous daughter documents. The daughter documents all have file tags/keywords.
What I need is protected document (it can be DOC, PDF or HTML) that when opened will run a macro that will (1) query the user for a search term, (2) search all the files in the folder for file tags or keywords that match (3) open all those matching files into a single html page for display.
All the source files are Word 2010 but can be saved as PDF or HTML if it makes things easier.
Thanks in advance.
Word's Master Document 'feature' is a disaster waiting to happen! Use it only if you don't value your work. See:
https://wordmvp.com/FAQs/General/WhyMasterDocsCorrupt.htm
http://www.addbalance.com/word/masterdocuments.htm
As for opening all your source documents in a single window, that's not possible unless you actually merge those documents into a single file. The code for that is complex. For some code to get you started, see:
https://www.mrexcel.com/forum/general-excel-discussion-other-questions/1037570-vba-combine-differently-formatted-word-files-into-1-while-preserving-layouts-post4980503.html#post4980503

Convert google sheet to PDF then email daily

does anyone know the google script code so that I can convert a Google Sheet into a PDF then email it to one single email address (mine) at a set time daily?
The information is only in column A and up to row 30 (may increase or decrease depending on the tasks I have on hand - sheet is my task list!)
Not a techie here but know the importance of code in making life more efficient, so I would like to try implementing it myself. Appreciate any help!
Here's a Code may help you it worked great with me !
Github Link
Note: the code make all Spreadsheet into pdf because there's no way to get just a sheet depends my infos if i'm not wrong
if you want to Convert just do this trick:
create another Spreadsheet with one sheet and do import range and don't forget to add the ID of new Spreadsheet on the code !
i had problem like that and this is how i solved it

inject static content word document while mail merge is running?

The rules available for mail merge in ms word 2007 appear to be limiting. I have created a mail merge to fetch about 10000 rows of data from excel and merge this data into word document by using a mail merge. This works as expected I have even used some conditional statements to display default text when a field is empty. However, I have been asked to insert a static page every 50th page which would include messaging not provided in excel file. When this static text appears on page 50, then 100, then 150 etc it would be static text and no other fields from merge would appear on page. In other words these fields would be replaced by static text. Is there an easy way to do this? I was thinking I could code something in vba and create a new page on the fly when a certain page number is reach ex. 50
Thoughts are much appreciated.
There is a lot of code on the Internet. Start with MSDN. If you google for "VBA MailMerge" you will also come across a number of links to threads in StackOverflow dealing with calling MailMerge from Excel. I suggest you focus on a method in which you imagine that you would like to work and research the code that might do the job. You will then arrive quickly at a stage where you actually might need the kind of help that is being offered here to abundantly.

Get data from google sheet programatically if the sheet is modified

I am using below link to access data from google sheet:
https://sheets.googleapis.com/v4/spreadsheets//values/?key="API_Key"
Now I don't want data every time unless it is modified. Every time I will make API call and if the data is modified then I want those specific data rather than having complete data from the sheet. Or if getting specific data is not feasible then complete data will also work for me.
Any help is appreciated!
you'll still need to get the list of revisions before you get the latest one. Its discussed more in Manage Revisions of the Drive documentation. Once you've called the revisions:list, just pick the Revision you want from the list (conditional loop)

Interactive editable spreadsheet in Google Docs

I have created a spreadsheet in google docs. The spreadsheet takes some input, calculates some results, and displays the results numerically but also as a graph.
I would like to publish this spreadsheet, so that anyone can input and get the results and the graphs. I tried the Publish to the Web option (from File Menu), but the spreadsheet becomes static (no calculations possible on new values)
I tried the Share option. However when choose anyone can view the spreadsheet is not interactive. When i choose the anyone can edit option the file is usable, but my concern is that if I publish this on the internet and 2 users want to calculate simultaneously based on different values it will mix things up.
Is there anyway to accomplish what I require without setting up a website or programming in Javascript? I do not need to protect any of the calculation routines, I only require that the spreadsheet starts everytime with the default settings, the edits are not saved and the spreadsheet is interactive.
Seems like you may want to publish your Google Sheet as a template. Doing so will let strangers "deploy" a copy of your spreadsheet, for their own use (and without conflicting with other web users).
Google Docs template gallery
Instructions for submitting a template
Caveat: Until Google adds support for publishing "new" Google Sheets as templates, you'll likely want to submit a spreadsheet in the "old" format.
I might suggest using Protected Ranges.
https://drive.googleblog.com/2012/08/lock-down-cells-with-protected-ranges.html
Basically locked cells and you should be the only one able to manipulate the locked cells to you can freely set the page to be editable.
You can also specify the Range of cells that you wish to use when embedding. (See the publish options).
These two methods should help you with your project.