随笔分类 -  VBA

摘要:1.参照项目 Microsoft Internet Controls Microsoft HTML Object 2.sample Sub GetIEItem()Dim objIE As InternetExplorerSet objIE = CreateObject("Internetexplor 阅读全文

posted @ 2020-02-26 22:44 wzhw2015 阅读(529) 评论(0) 推荐(0) 编辑 |

摘要:Public Sub FileToFileUpdate(ByVal fileName As String, ByVal strFrm As String, ByVal strTo As String)Dim newFileName As StringnewFileName = fileName & 阅读全文

posted @ 2020-02-26 22:40 wzhw2015 阅读(153) 评论(0) 推荐(0) 编辑 |

摘要:1.读入UTF-8文件 Dim value As String Dim vLines As Variant Call ReadCsvUTF_8(vFile.Path, value) vLines = Split(value, vbCrLf) For i = 0 To UBound(vLines) . 阅读全文

posted @ 2020-02-26 22:38 wzhw2015 阅读(1954) 评论(0) 推荐(0) 编辑 |

摘要:Public Sub WriteUTF_8BomNon(ByVal fileName As String, ByVal strLine As String)Dim stream: Set stream = CreateObject("ADODB.Stream")stream.Type = 2 ' a 阅读全文

posted @ 2020-02-23 23:17 wzhw2015 阅读(139) 评论(0) 推荐(0) 编辑 |

Copyright © 2024 wzhw2015
Powered by .NET 8.0 on Kubernetes