看板 Visual_Basic 關於我們 聯絡資訊
Sub highlight() '設計highlight()程式 Dim Cell As Range '定義變數cell為範圍格式 Worksheets(1).Select '選擇工作表1 For Each Cell In Range("c2:f5") '設定迴圈範圍為c2:f5 If Cell.Value < 60 Then Cell.Interior.colorIndex = 3 '設定cell color EndIf Next End Sub 這個我會 但下面這個問題我就想不出來了 假設全班的學期成績差異過大,請設計一個VB程式自動將成績開根號再乘以10的程式。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.170.156.234
fumizuki:是VB6 還是VBA? 61.222.155.162 06/16
elva0204:vb6218.170.156.234 06/16
fumizuki:vb6沒有worksheets吧 61.222.155.162 06/16
fumizuki:開根號 sqr() 61.222.155.162 06/16
nanami2:算標準差來判斷差異是不是過大,再開根號x10 140.112.22.15 06/16