瑞星卡卡安全论坛

首页 » 综合娱乐区 » Rising茶馆 » 紧急求助,速来
冰心一点 - 2009-12-2 15:47:00
:kaka8: 目前有几万个手机号码,txt格式,在txt文本文档中的格式是

姓名  手机号

如:
茶馆小二  13333333333
麦青儿      13333333331
.....


求助怎样用最快的速度提取出手机号码

格式如:
13333333333
13333333331
......

用户系统信息:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon 2.0)
帅哥阿福 - 2009-12-2 15:48:00
excel
冰心一点 - 2009-12-2 15:48:00
:kaka6: :kaka6: 步骤呢,这个我没研究
鬼鬼小猫咪 - 2009-12-2 15:56:00


Sub txttoexcel()
    With ThisWorkbook
        ChDir ThisWorkbook.Path
        filetoopen = Application.GetOpenFilename("文本文件(*.txt),*.txt", , "请选择要导入的文本文件", , True)
        If IsArray(filetoopen) Then
            For Each cc In filetoopen
                j = Application.WorksheetFunction.CountA(ActiveSheet.Range("a:a"))
                ActiveSheet.Range("a" & j + 1).Select
                With ActiveSheet.QueryTables.Add(Connection:= _
                    "TEXT;" + cc, Destination:=Range("$A$" & j + 1))
                    '.Name = "1"
                    .FieldNames = True
                    .RowNumbers = False
                    .FillAdjacentFormulas = False
                    .PreserveFormatting = True
                    .RefreshOnFileOpen = False
                    .RefreshStyle = xlInsertDeleteCells
                    .SavePassword = False
                    .SaveData = True
                    .AdjustColumnWidth = True
                    .RefreshPeriod = 0
                    .TextFilePromptOnRefresh = False
                    .TextFilePlatform = 936
                    .TextFileStartRow = 1
                    .TextFileParseType = xlDelimited
                    .TextFileTextQualifier = xlTextQualifierDoubleQuote
                    .TextFileConsecutiveDelimiter = True
                    .TextFileTabDelimiter = False
                    .TextFileSemicolonDelimiter = False
                    .TextFileCommaDelimiter = False
                    .TextFileSpaceDelimiter = True
                    .TextFileColumnDataTypes = Array(1, 1, 1, 1, 1)
                    .TextFileTrailingMinusNumbers = True
                    .Refresh BackgroundQuery:=False
                End With
            Next cc
        End If
        End With
End Sub


杰洛 - 2009-12-2 15:58:00
以前会来着
现在忘了:kaka6:
茶馆小二 - 2009-12-2 16:03:00
怎么不行了...
冰心一点 - 2009-12-2 16:05:00
:kaka4: VB嘛?米学啊
帅哥阿福 - 2009-12-2 16:19:00
把这些东西复制到excel里面,就知道怎么做了,挺容易的。
都在一排上。
冰心一点 - 2009-12-2 16:44:00
:kaka6: 不容易,每个“姓名+号码”都在一个格子里面,要怎么做:kaka2:
会飞的鱼0000 - 2009-12-2 18:29:00
该用户帖子内容已被屏蔽
722 - 2009-12-2 18:32:00
上网找一下这个文单,都是一个格子的,手机的位数是一样的。就是从右边数多少位复制出来。
我不会
你上网找吧。有这样的文章 。
A小可 - 2009-12-2 19:07:00
貌似解决了呀?
筱碗 - 2009-12-2 21:23:00
路过
1
查看完整版本: 紧急求助,速来