方法:
1,excel中,按alt+f11,開啟vba編輯介面,雙擊需要改的工作表名稱,將下面**貼上到右邊框中,即可。
2,**:
private sub worksheet_selectionchange(byval target as range)3,如果想變顏色,改這句**的值:cells.interior.colorindex = 0
rows(target.row).interior.colorindex = 34
end sub
private sub worksheet_selectionchange(byval target as range)4,colorindex值列表:cells.interior.colorindex = 0
rows(target.row).interior.colorindex =34
end sub
Vegas原創 sendkeys例項
需求 將excel檔更新提醒關閉,並另存為a xls.dimwshset wsh wscript.createobject wscript.shell wsh.run 每日生產狀況表.xls wscript.sleep 1000 wsh.sendkeys wscript.sleep 100wsh.s...
Vegas原創 TextBox換行
看見網上好多人說textbox換行後,資料庫或是label顯示不出來,我今天給大家介紹乙個小小的秘訣吧 strsubject txttitle.text.trim replace system.environment.newline,試一下 附 system.environment成員和方法 1.獲...
Vegas原創 sendkeys例項
需求 將excel檔更新提醒關閉,並另存為a xls.dimwsh setwsh wscript.createobject wscript.shell wsh.run 每日生產狀況表.xls wscript.sleep 1000 wsh.sendkeys wscript.sleep 100wsh.s...