Hello Friends!
I would like to use a macro as the following Google Sheets macro but in the OnlyOffice Sheets macro. The problem is that I don’t know how to program in Java. I don’t know how to do the conversion. Can someone help me, please? I tried to study some OnlyOffice Sheets macros, but unfortunately I was not able to understand and convert the following Google Sheets macro to an OnlyOffice Sheets macro.
function CopyPaste()
{
var planilha = SpreadsheetApp.getActiveSpreadsheet();
var guiacoletora = planilha.getSheetByName(“Coletora”);
var guiareceptora = planilha.getSheetByName(“RelatorioDiario”);
var area = guiacoletora.getRange(“B4:F5”);
var linha = guiareceptora.getLastRow() + 1;
var colar = “A” + linha;
area.copyTo(guiareceptora.getRange(colar),SpreadsheetApp.CopyPasteType.PASTE_VALUES, false);
guiacoletora.getRange(“B4:F5”).clear({contentOnly:true, skipFilteredRows:true});
guiacoletora.getRange(“B4”).activate();
Browser.msgBox(“Enviado com sucesso!”);
};
Basically the content from the interval “B4:F5” from the sheet “Coletora” will be pasted under the last filled line, or from the first unfilled line, onwards, in the sheet “RelatorioDiario”. After pasting the content from the interval “B4:F5”, I would want the macro to clean this interval from the sheet “Coletora”.
Thank you for your attention!