12   1  /  2  页   跳转

[版聊] 紧急求助,速来

紧急求助,速来

目前有几万个手机号码,txt格式,在txt文本文档中的格式是

姓名  手机号

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


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

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

用户系统信息:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon 2.0)
分享到:
gototop
 

回复:紧急求助,速来

excel
╭∩╮(︶︿︶)╭∩╮
gototop
 

回复 2F 帅哥阿福 的帖子

步骤呢,这个我没研究
gototop
 

回复: 紧急求助,速来



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




gototop
 

回复:紧急求助,速来

以前会来着
现在忘了
gototop
 

回复:紧急求助,速来

怎么不行了...

娱乐区官方群——113762779,加入请注明论坛昵称  O(∩_∩)O点击惊现很多美女,很多贡献,很多滴欢乐O(∩_∩)O
神人到处有,茶馆特别多。谁让我开不成茶馆,我就让ta2012。在我二成一种传奇之后,再也不用羡慕其他人了。
gototop
 

回复 4F 鬼鬼小猫咪 的帖子

VB嘛?米学啊
gototop
 

回复:紧急求助,速来

把这些东西复制到excel里面,就知道怎么做了,挺容易的。
都在一排上。
╭∩╮(︶︿︶)╭∩╮
gototop
 

回复 8F 帅哥阿福 的帖子

不容易,每个“姓名+号码”都在一个格子里面,要怎么做
gototop
 

回复:紧急求助,速来

该用户帖子内容已被屏蔽
是谁 与我镜中同行?
gototop
 
12   1  /  2  页   跳转
页面顶部
Powered by Discuz!NT