
vba
zxx2403
这个作者很懒,什么都没留下…
展开
-
Clear Worksheet Cells
Sheet1.UsedRange.Clear Worksheets("Sheet1").Cells.Clear ' or ClearContents原创 2012-11-01 14:50:16 · 675 阅读 · 0 评论 -
MS Excel: SUBTOTAL Function (WS)
refer http://office.microsoft.com/en-ca/excel-help/subtotal-function-HP010062463.aspxReturns a subtotal in a list or database. It is generally easier to create a list with subtotals by using转载 2013-02-27 16:40:06 · 593 阅读 · 0 评论 -
backup email into local
Attribute VB_Name = "ModSaveEmails"Option ExplicitSub SaveAllEmails_ProcessAllSubFolders()Dim i As LongDim j As LongDim n As LongDim StrSubjec转载 2013-01-12 14:53:52 · 415 阅读 · 0 评论 -
How Do I Convert an Integer to a String in Excel VBA
Try the CStr() functionDim myVal as String;Dim myNum as Integer;myVal = "My number is:"myVal = myVal & CStr(myNum);转载 2012-11-13 15:31:24 · 1686 阅读 · 0 评论 -
Excel VBA - export to UTF-8
Dim filePath As String Dim fileName As String Dim charToEncode As String Dim encodingType As String Dim success As Boolean Dim rngArray() As Variant filePath = "C:\"原创 2012-11-13 15:33:20 · 1690 阅读 · 0 评论 -
How to Find a Blank Cell in Excel Using Vba
Highlight the area where you would like to find the blank cells. To highlight an area,left click on the top left cell, and then drag the cursor down to the bottom left cellClick on "View," then cl原创 2012-11-06 15:27:20 · 533 阅读 · 0 评论 -
vba 显示表中数据
Sub test() On Error GoTo CloseRs Dim conn As New ADODB.Connection conn.connectionString = "Provider=OraOLEDB.Oracle;Data Source=xxxxxx;User Id=xxxxxx;Password=xxxxx原创 2012-11-01 14:58:13 · 614 阅读 · 0 评论 -
Importing Large CSV Files into Excel 2003
Option ExplicitOption Compare TextSub ImportCsvFile() 'Define variables Dim RowI As Long Dim ColJ As Integer Dim ColJ2 As Long Dim FileName As String Dim FileNo As In转载 2012-10-23 11:32:39 · 403 阅读 · 0 评论 -
vba access oracle
使用vba 访问数据库, 使用ado控件Dim conn As ADODB.Connection需要引入 Microsoft ActiveX Data Object 2.x Library原创 2012-11-01 14:46:13 · 436 阅读 · 0 评论 -
遍历指定文件夹中的Excel
Public Sub deleteRows() Dim strPath As String strPath = "C:\backup\PCW\20140603\both\result" Dim objFSO As Scripting.FileSystemObject Set objFSO = New Scripting.FileSyste原创 2014-09-20 14:05:29 · 567 阅读 · 0 评论