+ Reply to Thread
Results 1 to 10 of 10

Opening TXT too slow

Hybrid View

  1. #1
    Dave Peterson
    Guest

    Re: Opening TXT too slow

    And since you're working with a text file, it' will never contain code. That
    means that Thisworkbook would never refer to the text file.

    But you can do this:

    dim wkbk as workbook
    '''a bunch of code

    Workbooks.OpenText Filename:=varArchivo, Origin:= ....
    'right after the .opentext line
    set wkbk = activeworkbook

    '''another bunch of code

    wkbk.close savechanges:=false


    carloshernandezy wrote:
    >
    > Thanks Dave for your help, I finally took your suggestion.
    >
    > One more cuestion, itīs possible to close the *.txt without saving any
    > changes, after copying some data. I have problems with
    > "ThisWorkbook.Close savechanges:=False" because it is not already a
    > workbook. Can I change this for a txt file?
    >
    > Thanks


    --

    Dave Peterson

  2. #2
    carloshernandezy
    Guest

    Re: Opening TXT too slow

    Once again, thanks Dave.


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1