Saturday, September 29, 2012

Google Spreadsheet Script to get the Last Row

Google Spreadsheet Script to get the last row

function GetTheLastRow() {
  var ss = SpreadsheetApp.getActiveSpreadsheet();
  var s = ss.getSheetByName("Sheet1");

  //To get the last row of a Sheet
  var lastrow = s.getLastRow();

  //To display the last row in the msgbox


And If you are not much familiar with scripts then check out the following link: 

I hope the above solution will help you, and if you need more help then please do comment below on this blog itself, I will try to help you out.

I also take up private or confidential projects:

If this blog post was helpful to you, and if you think you want to help me too and make my this blog survive then please donate here: 


No comments:

Post a Comment