workbooks as input to VBA tool not working properly

01's

Board Regular
Joined
Jun 1, 2011
Messages
85
Hi Guys,

I use 5 workbooks as inputs to a VBA tool. I receive these files zipped in mail from a team mate.When I unzip the files to a folder and use directly as input it throws error in line - "Workbooks.Open Filename:=<workbook name>". But when I open all 5 files and resave them in same ".xlsx" format and then use them as inputs; the tool works very fine.
Also I get error "excel found unreadable content...." when I open the workbooks for the first time after unzipping. Can anyone pls guide.
I am quite sure my codes are perfect.
 
instead of just extracting the files from the zip folder you could just open them all then save them where you want them :D


Hmmmm yes I am doing that....ya thats the only solution possible as of now it seems......Thanks all guys for your super quick replies today. I am happy with the responses in this forum
Cheers!!! :beerchug:!!!!! :biggrin:
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,225,149
Messages
6,183,188
Members
453,151
Latest member
Lizamaison

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top