返回列表 上一主題 發帖

請修改程式

回復 1# myleoyes
  1. Sub Ex()
  2.     With Sheets("學習").[A65535].End(xlUp).Resize(1, 15)
  3.         .Copy
  4.         .Offset(1).PasteSpecial Paste:=xlPasteFormulas
  5.         .Offset(1).PasteSpecial Paste:=xlPasteFormats
  6.         .PasteSpecial Paste:=xlPasteValues
  7.     End With
  8. End Sub
複製代碼

TOP

回復 4# myleoyes
1.   
    mid取出數字部分再轉數字型態
    =--Mid(A1,3,Len(A1)-2)
2.
    你寫的  If ZZ <> False Then [E1] = "=" & "int" & "(" & ZZ & "/2)" & "+" & Mid([E1].FormulaR1C1, 2)
    式中的ZZ含有等號 , 改 Right(ZZ , Len(ZZ)-1) 看看

TOP

        靜思自在 : 人要自愛,才能愛普天下的人。
返回列表 上一主題