今天分享一个【wps云文档js宏-多维表累计求和功能】,挺有用的一个功能,可以用于累计出入库等
//操作选中的表
const sheet = Application.Selection.GetActiveSheet()
//将记录集转为数组
const rec = Array.from(fetchAllRecords())
//按编号排序
rec.sort((a, b) => a.fields["编号"] - b
今天分享一个【wps云文档js宏-多维表累计求和功能】,挺有用的一个功能,可以用于累计出入库等
//操作选中的表
const sheet = Application.Selection.GetActiveSheet()
//将记录集转为数组
const rec = Array.from(fetchAllRecords())
//按编号排序
rec.sort((a, b) => a.fields["编号"] - b