PB 呼叫VBA方法 個人筆記

2021-07-09 09:57:44 字數 1002 閱讀 5567



pb vba 常用方法

ole_word.visible = true

ole_word.documents.add    // 新建word word 可見

ole_word.activedocument.shapes.addtextbox(1, 84.75,  432.5 , 413.85, 121.55).select  //  新增文字框

left    top     width   hieght

ole_word.selection.paragraphformat.characterunitfirstlineindent = 2.0  首行縮排2個字元

ole_word.selection.font.name ='楷體_gb2312'  字型

ole_word.selection.font.size ='18'           字型大小

ole_word.selection.paragraphformat.linespacingrule = 4 //  段落行距  4固定值

ole_word.selection.paragraphformat.linespacing = 28 //行距28磅

ole_word.selection.paragraphformat.lineunitafter = 1  //段後一行

ole_word.selection.paragraphformat.lineunitbefore = 1  //段前一行

ole_word.selection.endkey(6) 移動到文件末尾

ole_word.selection.paragraphformat.alignment = 2  對其方式  右對齊

ole_word.selection.insertbreak(1)  //插入一頁

ole_word.selection.typetext( "學位委員會主席")// 向段落插入文字

ole_word.selection.typeparagraph  //結束段落



js Math物件方法 (個人學習筆記)

方法 1.丟棄小數部分,保留整數部分 parseint 5 2 2.向上取整,有小數就整數部分加1 math.ceil 5 2 3,四捨五入.math.round 5 2 4,向下取整 math.floor 5 2 5,返回數的絕對值 math.abs x 6,返回 x 和 y 中的最高值 math...

Java學習筆記 內部類及其呼叫方法

public class test0719 inner test class outter 執行結果 static內部類的static方法。static 非static 內部類的static public class test0719 inner test class outter 執行結果 sta...

struts2學習筆記三 動態方法呼叫

方式2 web inf page jsp 找靜態資源 filterdispatcher org.apache.struts2.static template strutsprepareandexecutefilter的功能 其他的filter通常要位於strutsprepareandexecutef...