|
-
Jul 25th, 2008, 04:48 AM
#1
Thread Starter
PowerPoster
extract/unzip xls file from zip file
In VBA for Excel, please....
In this dir are many zip file(admit i dont know the number of file)
MYPATH= "\\GCD01F4500\DATI\PUBBLICA\APPLICAZIONI\ZIP_FILE\"
I want vto extract from all zipped file only *.XLS file and copy injto same MYPATH
Not important to recreate the same dir and sub dir from ZIP file...
Important for me only to extract .xls file
In effect:
looping in MYPATH do until zip file are finshed and extract .xls
-
Jul 25th, 2008, 11:06 AM
#2
Re: extract/unzip xls file from zip file
 Originally Posted by luca90
In VBA for Excel, please....
In this dir are many zip file(admit i dont know the number of file)
MYPATH= "\\GCD01F4500\DATI\PUBBLICA\APPLICAZIONI\ZIP_FILE\"
I want vto extract from all zipped file only *.XLS file and copy injto same MYPATH
Not important to recreate the same dir and sub dir from ZIP file...
Important for me only to extract .xls file
In effect:
looping in MYPATH do until zip file are finshed and extract .xls
This will get you started...
If you still have any questions, please ask...
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread " Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
-
Jul 25th, 2008, 01:01 PM
#3
Thread Starter
PowerPoster
Re: extract/unzip xls file from zip file
 Originally Posted by koolsid
This will get you started...
If you still have any questions, please ask...
GOOD! work...
But the code unzip dir, sub dir, with the .xls based originale structure of dir...
I want to extract only the .xls in the first path od dir without structure of dir.... is possible?
-
Jul 27th, 2008, 05:00 PM
#4
Re: extract/unzip xls file from zip file
if you are using winrar to unzip i believe e will extract to current directory or x to a specified directory, r is to recurse directory names and should be set to off
i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next
dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part
come back and mark your original post as resolved if your problem is fixed
pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|