Macro adjustment to wait till my Zip file is open till it moves on to next step...

sdoppke

Well-known Member
Joined
Jun 10, 2010
Messages
647
Hi everyone, I have a macro that opens a file from a url (its a zip file) Then it needs to call another macro to finish the process of copying the contents of the opened workbook to ThisWorkbook. I have all the script. What im hoping to get help with is getting the macro to wait on the call till the workbook (1 file) from the zip file is fully open.

Hope that helps. I didnt copy the code cause it is so excrutiatingly long :) and didn't think it would help much anyways. :)

Thanks a ton in advance.

sd
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
as a test, put a WAIT function in there to see if it helps.

Application.Wait Now + TimeSerial(0,0,1) ' (H,M,S)
 
Upvote 0
as a test, put a WAIT function in there to see if it helps.

Application.Wait Now + TimeSerial(0,0,1) ' (H,M,S)


Good sugestion, I actually tried that earlier and it seems as though the opening of the book itself is on hold till the macro is finished. I had it waitning up to 60 seconds.

Any ideas on how to stop the macro till the book in the zip is opened and then resume?

sd
 
Upvote 0

Forum statistics

Threads
1,224,543
Messages
6,179,429
Members
452,914
Latest member
echoix

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