- 帖子
- 1018
- 主題
- 15
- 精華
- 0
- 積分
- 1058
- 點名
- 0
- 作業系統
- win7 32bit
- 軟體版本
- Office 2016 64-bit
- 閱讀權限
- 50
- 性別
- 男
- 來自
- 桃園
- 註冊時間
- 2012-5-9
- 最後登錄
- 2022-9-28
|
3#
發表於 2013-11-20 14:48
| 只看該作者
本帖最後由 stillfish00 於 2013-11-20 14:50 編輯
回復 2# eigen
模組新增Function:- Function StrToVertical(s As String) As String
- With CreateObject("vbscript.regexp")
- .Global = True
- .Pattern = "(\d+|[^\d])"
- StrToVertical = .Replace(s, "$1" & vbLf)
- End With
- End Function
複製代碼 PrintPage() 中改為- .[i3] = StrToVertical(E.Range("d1").Value)
複製代碼 |
|