Results 1 to 3 of 3
  1. #1
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    409

    Unzip with vba - cut text in a txt file


    Hi, i'd like to use vba to unzip compressed files. I found just few old stuff in internet, i'm wondering if there is a not to complex way to achieve that.

    more, the zipped file is a txt file which text i'd like to cut from beginning till a word.
    thanks

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,778
    I asked my buddy Barney Google and got over a million hits so it seems you're not the first to ask. Here's one result
    https://stackoverflow.com/questions/...-all-for-any-d

    EDIT
    As for the cutting up to a word, you'll need a reference to Microsoft Scripting Runtime library, or you might get away with just using Dir object (I can't remember which library that one belongs to). I have never used either to copy part of a text file though.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    diegomarino is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Feb 2018
    Posts
    409
    thanks, i missed this one i have to remember to use stackoverflow.
    actually the file is a txt, but this is the easy part of the job

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 03-10-2021, 10:01 PM
  2. Writing to a text file and linking table to text file
    By NightWalker in forum Programming
    Replies: 17
    Last Post: 07-21-2020, 04:35 PM
  3. VBA unzip not working
    By Euler271 in forum Programming
    Replies: 11
    Last Post: 05-02-2018, 01:37 PM
  4. Replies: 4
    Last Post: 09-09-2015, 12:10 PM
  5. Replies: 2
    Last Post: 12-27-2012, 09:37 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums