Forum Discussion
Excelkid
Aug 07, 2025Copper Contributor
Add a copy tab function, but remove all the formulas
Hi, I’m familiar with how to copy a tab and then use "Paste Values" to remove all the formulas. However, would it be possible for you and your team to create a feature or shortcut that automatically ...
SergeiBaklan
Aug 08, 2025Diamond Contributor
As variant with Office Scripts
function main(workbook: ExcelScript.Workbook) {
const fromSheet = "Source sheet"
const toSheet = "Target sheet"
const source = workbook.getWorksheet(fromSheet).getUsedRange()
const address = source.getAddress()
workbook.getWorksheet(toSheet)
.getRange(address.slice(address.indexOf("!") + 1))
.copyFrom(source, ExcelScript.RangeCopyType.values)
}