+ Reply to Thread
Results 1 to 6 of 6

reading excel file from zip

  1. #1
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229

    reading excel file from zip

    I am just wondering if there is a way to read data from an excel file that is zipped. I have zipped excel files from last few months and I want to read the data from these files what's the best way to do that using a vba macro? Any idea is appreciated.

    Thanks

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello walid66,

    Zipping a file alters it using a compression algorithm. The file must first be decompressed before Excel would be able to read it. What did you have in mind for this macro?

    Sincerely,
    Leith Ross

  3. #3
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229
    Every month we zip our data and put it on a server so if I want to read files from April or May i have to unzip them and put them somewhere and run a macro to read the data. I am wondering if there is a macro to unzip the file and put them in a temp directory and I can run my macro to read these files. After they are read they can be deleted from the temp directory.

  4. #4
    Registered User
    Join Date
    04-24-2008
    Posts
    85
    I have found this site helpful in the past when working with zip files:

    Unzipping
    -----
    http://www.rondebruin.nl/unzip.htm
    http://www.rondebruin.nl/files/windowsxpunzip.txt

    Zipping
    -----
    http://www.rondebruin.nl/windowsxpzip.htm

  5. #5
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229
    Thanks for your help. I will give it a try.

  6. #6
    Forum Contributor
    Join Date
    12-09-2006
    Posts
    229
    thanks it worked.

+ 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