2017年9月7日 星期四

格式化 去$  $P"$"3   可以拉整排


=IF($F3<>"-",$P3<$F3)










Sub 高低比較()
'
' 高低比較 巨集
'
'
'Sheets("工作").Activate
'Application.Goto ActiveWorkbook.Sheets("工作")
    For i = 3 To 26
    'ActiveSheet.
        If Cells(i, 6) <> "-" Then
            If Cells(i, 3) > Cells(i, 6) Then
            'Cells(i, 3).Font.Color = RGB(0, 255, 0)
             Cells(i, 3).Interior.Color = RGB(204, 255, 204)
             End If
       
              If Cells(i, 3) < Cells(i, 6) Then
           
             Cells(i, 3).Interior.Color = RGB(255, 153, 153)
             End If
  '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
       
             If Cells(i, 4) > Cells(i, 6) Then
           
             Cells(i, 4).Interior.Color = RGB(204, 255, 204)
             End If
       
              If Cells(i, 4) < Cells(i, 6) Then
          
             Cells(i, 4).Interior.Color = RGB(255, 153, 153)
             End If
   ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

 
 
 
 
        End If
       
    Next

Related Posts:

  • excel vba Dim num1 As Integer Sub test1() Range("a1").Value = num1 End Sub Sub test2() Range("a2:a50").Value = "vvv" End Sub Sub test3() Range("a2:a50").Clear End Sub Sub test4() Dim i, Sumtotal As Integer Range("a:d").Cle… Read More
  • 房屋貸款 計算 等額本息還款金額 貸款分為 定額本金法 跟 定額本息法定額本息法 優點  ,每月固定還款金額 ,利於規劃日常消費支出定額本金法 缺點 ,一開始還的錢比較多,之後慢慢減少舉例:貸款(Pv):        1千萬年利率:    2%月利率(Rate):    2%/12 =0.13%貸款年數:    20年總貸款的月數(Npe… Read More
  • excel 格式化格式化 去$  $P"$"3   可以拉整排 =IF($F3<>"-",$P3<$F3) Sub 高低比較() ' ' 高低比較 巨集 ' ' 'Sheets("工作").Activate 'Application.Goto ActiveWorkbook.Sheets("工作")     For i = 3 To 26   &n… Read More
  • office [ word excel ] 用vba 大量取代有位朋友說他需要把一些 Word 文件檔裡面的 "第一章" 全部改成  "第1章"、 "第一款" 全部改成  "第1款"、......依此類推,最多會到第一百多章、第一百多款  給他放在 Normal.dot  (的插入模組) 裡使用: Option Base 0 Sub MassReplace() Dim arrStr() As String, InputStr As String Fn = Free… Read More
  • 下載網站的表格型態資料 01. [題目]請撰寫程式,以HTMLTable物件將GOGOFUND網站代號為47092的基金歷史淨值下載到Temp工作表。網址如下:http://www.gogofund.com/convch/fund/nav_historical.asp?FundID=47092  '---------------------------------------------------------------------------------… Read More

0 意見:

張貼留言

標籤

總網頁瀏覽量

76,522

Translate

Popular Posts

Blog Archive