File Search question...
Amazing chart utilities from Jon Peltier
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: File Search question...

  1. #1
    New Member
    Join Date
    Feb 2002
    Posts
    40
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    I have a command button that will search for and open specifically named files. These files are text documents is there a way to delimit automatically in the macro? (From tab to other with character'|')

    Thanks

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sydney, Australia
    Posts
    2,936
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    You can specify the delimiting character when using Workbooks.Opentext. To get a better explanation type Opentext into Excel's VB help but this should get you going:-

    Code:
    Workbooks.OpenText Filename:="C:temptest.txt", DataType:=xlDelimited, other:=True, otherchar:="|"
    HTH,
    D

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com