Solved

Getting a misleading error using Google Script

Posted on 2015-02-08
2
77 Views
Last Modified: 2015-02-09
This code does basically what I want, copy and rename a sheet to the current date.  I found it and am trying to customize it to give me todays date.  I'm getting an error that I think is misleading, but I do not know what the real problem is

Im getting the error
Missing ; before statement
The line being pointed to  is  Date today = new Date();
You can see the full script in the attachment, I don't see what the problem is, but then this is the 1st time using Google script/Java

Any help will be appreciated
duplicateTemplateSheet.txt
0
Comment
Question by:c7c4c7
  • 2
2 Comments
 

Accepted Solution

by:
c7c4c7 earned 0 total points
ID: 40598652
See the following how I solved the problem

Thanks for all the help
duplicateTemplateSheet.txt
0
 

Author Closing Comment

by:c7c4c7
ID: 40598654
It did what I needed
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With voice direction tools, various map viewing styles, the ability to get directions for different means of transportation and great service, Google Maps is simply one of the best navigations app in the market.    However, over the past year, an …
Whether you’re looking to gather data for research or gather feedback on an idea, being able to build and distribute your own online survey is not only cost-effective, but allows you to reach a larger audience and receive results in real-time. Googl…
By using UNIQUE function in Google Sheets, you can get around removing duplicates like in Microsoft Excel.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question