/**
* test Macro
*/
function test()
{
for(let i=1;i<=1000;i++){
Selection.EndKey('wdRow','wdMove');
let a='d'+Selection.Text+'d';
let b = a.replace(/\s*/g,"");
let c= Selection.Text;
if(b =='dd'){
//此行已换行
console.log(c);
//Selection.MoveRight('wdCharacter',1)
Selection.MoveRight('wdCharacter',1);
}else{
//Selection.MoveLeft('wdWord',1);
Selection.TypeParagraph();
}
//if(Selection.MoveRight('wdCharacter',30)){
//}
}
}
wps/word 自动换行插入回车符 JS宏代码
最新推荐文章于 2025-03-23 16:26:18 发布