返回列表 上一主題 發帖

請教操作 excel vba 直書橫書操作

本帖最後由 stillfish00 於 2013-11-20 14:50 編輯

回復 2# eigen
模組新增Function:
  1. Function StrToVertical(s As String) As String
  2.   With CreateObject("vbscript.regexp")
  3.     .Global = True
  4.     .Pattern = "(\d+|[^\d])"
  5.     StrToVertical = .Replace(s, "$1" & vbLf)
  6.   End With
  7. End Function
複製代碼
PrintPage() 中
  1. .[i3] = E.Range("d1")
複製代碼
改為
  1. .[i3] = StrToVertical(E.Range("d1").Value)
複製代碼

TOP

        靜思自在 : 要用心,不要操心、煩心。
返回列表 上一主題