You are on page 1of 6

/** @OnlyCurrentDoc */

function UntitledMacro() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRange('I8:I9').activate();
};

function MPODSEDIT() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRange('A7').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.DOWN).activat
e();
spreadsheet.getRange('A7494').activate();
spreadsheet.getCurrentCell().setValue('END');
spreadsheet.getRange('B7493').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);
spreadsheet.getRange('B7').activate();
var currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.DOWN).activate
();
currentCell.activateAsCurrentCell();
spreadsheet.getRange('B7490').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);
spreadsheet.getRange('A7').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.DOWN).activate
();
currentCell.activateAsCurrentCell();
spreadsheet.getRange('B7:D7').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.DOWN).activate
();
currentCell.activateAsCurrentCell();
spreadsheet.getRange('D7491').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);
spreadsheet.getRange('C7479').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);
spreadsheet.getRange('A7').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.DOWN).activate
();
currentCell.activateAsCurrentCell();
spreadsheet.getRange('N7').activate();
spreadsheet.getRange('A7:A7493').copyTo(spreadsheet.getActiveRange(),
SpreadsheetApp.CopyPasteType.PASTE_NORMAL, false);
spreadsheet.getRange('N10').activate();
spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);
spreadsheet.getRange('L7').activate();
spreadsheet.getCurrentCell().setValue('0');
spreadsheet.getRange('M7').activate();
spreadsheet.getCurrentCell().setValue('MFID');
spreadsheet.getRange('K7').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.DOWN).activat
e();
spreadsheet.getRange('L7493:M7493').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.UP).activate()
;
currentCell.activateAsCurrentCell();
spreadsheet.getRange('L7:M7').copyTo(spreadsheet.getActiveRange(),
SpreadsheetApp.CopyPasteType.PASTE_NORMAL, false);

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);
spreadsheet.getRange('J7').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.DOWN).activate
();
currentCell.activateAsCurrentCell();
spreadsheet.getActiveRangeList().setNumberFormat('M/d/yyyy');

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);
spreadsheet.getRange('O6').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.DOWN).activat
e();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);
spreadsheet.getRange('O2').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.DOWN).activat
e();
spreadsheet.getRange('A1:AM7494').activate();
spreadsheet.setCurrentCell(spreadsheet.getRange('O6'));
spreadsheet.getRange('A1:AM7494').createFilter();
spreadsheet.getRange('O1').activate();
var criteria = SpreadsheetApp.newFilterCriteria()
.setHiddenValues(['SSS/GSIS'])
.build();
spreadsheet.getActiveSheet().getFilter().setColumnFilterCriteria(15, criteria);
spreadsheet.getRange('O7').activate();
spreadsheet.getCurrentCell().setValue('0');
spreadsheet.getRange('N7').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.DOWN).activat
e();
spreadsheet.getRange('O7493').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.UP).activate()
;
currentCell.activateAsCurrentCell();
spreadsheet.getRange('O8:O7493').activate();
spreadsheet.setCurrentCell(spreadsheet.getRange('O7493'));
spreadsheet.getRange('O7').copyTo(spreadsheet.getActiveRange(),
SpreadsheetApp.CopyPasteType.PASTE_NORMAL, false);
spreadsheet.getActiveSheet().getFilter().remove();
spreadsheet.getRange('O7490').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);
spreadsheet.getRange('R5').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.DOWN).activat
e();
spreadsheet.getRange('A1:AM7494').activate();
spreadsheet.setCurrentCell(spreadsheet.getRange('R6'));
spreadsheet.getRange('A1:AM7494').createFilter();
spreadsheet.getRange('R1').activate();
criteria = SpreadsheetApp.newFilterCriteria()
.setHiddenValues(['TIN'])
.build();
spreadsheet.getActiveSheet().getFilter().setColumnFilterCriteria(18, criteria);
spreadsheet.getRange('R7').activate();
spreadsheet.getCurrentCell().setValue('0');
spreadsheet.getRange('S7').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.DOWN).activat
e();
spreadsheet.getRange('R7493').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.UP).activate()
;
currentCell.activateAsCurrentCell();
spreadsheet.getRange('R8:R7493').activate();
spreadsheet.setCurrentCell(spreadsheet.getRange('R7493'));
spreadsheet.getRange('R7').copyTo(spreadsheet.getActiveRange(),
SpreadsheetApp.CopyPasteType.PASTE_NORMAL, false);
spreadsheet.getActiveSheet().getFilter().remove();
spreadsheet.getRange('P7493').activate();
spreadsheet.getCurrentCell().setValue('0');
spreadsheet.getRange('Q7493').activate();
spreadsheet.getCurrentCell().setValue('0');
spreadsheet.getRange('P7492:Q7492').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.UP).activate()
;
currentCell.activateAsCurrentCell();
spreadsheet.getRange('P7:Q7492').activate();
spreadsheet.setCurrentCell(spreadsheet.getRange('P7492'));
spreadsheet.getRange('P7493:Q7493').copyTo(spreadsheet.getActiveRange(),
SpreadsheetApp.CopyPasteType.PASTE_NORMAL, false);

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);
spreadsheet.getRange('S6').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.DOWN).activat
e();
spreadsheet.getRange('T7493').activate();
spreadsheet.getCurrentCell().setValue('18');
spreadsheet.getRange('U7493').activate();
spreadsheet.getCurrentCell().setValue('AC');
spreadsheet.getRange('V7493').activate();
spreadsheet.getCurrentCell().setValue('NA');
spreadsheet.getRange('T7492:V7492').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.UP).activate()
;
currentCell.activateAsCurrentCell();
spreadsheet.getRange('T7:V7492').activate();
spreadsheet.setCurrentCell(spreadsheet.getRange('T7492'));
spreadsheet.getRange('T7493:V7493').copyTo(spreadsheet.getActiveRange(),
SpreadsheetApp.CopyPasteType.PASTE_NORMAL, false);

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);
spreadsheet.getRange('Y7:Z7').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.DOWN).activate
();
currentCell.activateAsCurrentCell();
spreadsheet.getActiveRangeList().setNumberFormat('M/d/yyyy');

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.NEXT).activat
e();
spreadsheet.getRange('AM7').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.DOWN).activate
();
currentCell.activateAsCurrentCell();
spreadsheet.getActiveRangeList().clear({contentsOnly: true, skipFilteredRows:
true});
spreadsheet.getRange('AI7').activate();
spreadsheet.getCurrentCell().setValue('0');
spreadsheet.getRange('AI8').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.DOWN).activate
();
currentCell.activateAsCurrentCell();
spreadsheet.getRange('AI7').copyTo(spreadsheet.getActiveRange(),
SpreadsheetApp.CopyPasteType.PASTE_NORMAL, false);

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);
spreadsheet.getRange('AH7').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.DOWN).activate
();
currentCell.activateAsCurrentCell();
spreadsheet.getActiveRangeList().setNumberFormat('M/d/yyyy');
spreadsheet.getRange('AE7').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.DOWN).activate
();
currentCell.activateAsCurrentCell();
spreadsheet.getActiveRangeList().clear({contentsOnly: true, skipFilteredRows:
true});
spreadsheet.getRange('AC7').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);
spreadsheet.getRange('AD6').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.PREVIOUS).act
ivate();
spreadsheet.getRange('B1').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.NEXT).activat
e();
spreadsheet.getRange('AC1').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.DOWN).activat
e();
spreadsheet.getRange('A1:AM7494').activate();
spreadsheet.setCurrentCell(spreadsheet.getRange('AC6'));
spreadsheet.getRange('A1:AM7494').createFilter();
spreadsheet.getRange('AC1').activate();
criteria = SpreadsheetApp.newFilterCriteria()
.setHiddenValues(['', '3', '4', '5', '6', '12', '16', '20', '23', '25', '36',
'50', 'TERM'])
.build();
spreadsheet.getActiveSheet().getFilter().setColumnFilterCriteria(29, criteria);
spreadsheet.getRange('AB189').activate();
spreadsheet.getCurrentCell().setValue('ENDOFTERM');
spreadsheet.getRange('AB190').activate();
currentCell = spreadsheet.getCurrentCell();

spreadsheet.getSelection().getNextDataRange(SpreadsheetApp.Direction.DOWN).activate
();
currentCell.activateAsCurrentCell();
spreadsheet.getRange('AB189').copyTo(spreadsheet.getActiveRange(),
SpreadsheetApp.CopyPasteType.PASTE_NORMAL, false);
spreadsheet.getActiveSheet().getFilter().remove();
spreadsheet.getRange('AB189').activate();
spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);
spreadsheet.getRange('K6').activate();

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.UP).activate(
);

spreadsheet.getCurrentCell().getNextDataCell(SpreadsheetApp.Direction.PREVIOUS).act
ivate();
};

You might also like