Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

180
Views
getCurrentCell Value from SpreadsheetApp opened by Id

I'm new to apps script. I'm developing a ticketing system that, from a form responses, automatically creates new spreadsheets with the right ticket on it. It works like a charm but I'm now having a problem...

I just want to know why, even if I activate the sheet opened by id, the function getCurrentCell() always return me the cell A1, even if I have a different cell selected.

This is the simple function:

function getValue() {
  var sheet = SpreadsheetApp.openById(id="").getSheetByName("Open Tickets").activate();
  var cell = sheet.getCurrentCell().getValue().toString();
  Logger.log(cell)
}

Thanks

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!