I have a macro that used to download a report off of an internal application. It used to work just fine. Several months ago, we were converted to Office 365 and now I cannot get any reports to download. Here is the code I got when I recorded the download process; which worked just like it was supposed to when I was recording it. The report was downloaded and could be found in "R:\My Documents\iMacros\Downloads\".
VERSION BUILD=10.3.27.5830
TAB T=1
TAB CLOSEALLOTHERS
ONDOWNLOAD FOLDER=* FILE=* WAIT=YES
I then put the code above into my VBA script and tried to run it:
IM = ""
IM = "CODE:"
IM = IM + "TAB T=1" + vbNewLine
IM = IM + "TAB CLOSEALLOTHERS" + vbNewLine
IM = IM + "SET !TIMEOUT_STEP 60" + vbNewLine
IM = IM + "ONDOWNLOAD FOLDER=* FILE=* WAIT=YES" + vbNewLine
IM = IM + "WAIT SECONDS=10" + vbNewLine
iret = iim1.iimPlay(IM)
When the VBA script runs, iMacros displays a "download not detected" message. I've tried this in both the iMacros browser and the IE browser and got the same result. I've also tried specifying the file name and the file location and get the same results. I've also tried using a different file extension like "xlsx" and get the same results. I've also tried using "SET !USE_DOWNLOADMANAGER NO" and "SET !USE_DOWNLOADMANAGER YES". No difference.
Any suggestions on resolving this issue would be greatly appreciated. I'm not sure if this is an Office 365 or iMacros or some internal security issue or even something else that is causing this situation.
Here is my system info:
Windows 7 Enterprise
32 bit operating system
Office 365 (Excel 2016)
iMacros 10.3.27.5830
Thanks for your help. I appreciate you taking the time to look at this........
Download Not Detected
Forum rules
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Before asking a question or reporting an issue:
1. Please review the list of FAQ's.
2. Use the search box (at the top of each forum page) to see if a similar problem or question has already been addressed.
3. Try searching the iMacros Wiki - it contains the complete iMacros reference as well as plenty of samples and tutorials.
4. We can respond much faster to your posts if you include the following information: CLICK HERE FOR IMPORTANT INFORMATION TO INCLUDE IN YOUR POST
Re: Download Not Detected
Yep, normal..., you have an 'ONDOWNLOAD' Statement but no 'TAG' or 'URL GOTO' or whatever Statement after it that will start/trigger the Download...shaves wrote:I have a macro that used to download a report off of an internal application. It used to work just fine. Several months ago, we were converted to Office 365 and now I cannot get any reports to download. Here is the code I got when I recorded the download process; which worked just like it was supposed to when I was recording it. The report was downloaded and could be found in "R:\My Documents\iMacros\Downloads\".
I then put the code above into my VBA script and tried to run it:Code: Select all
VERSION BUILD=10.3.27.5830 TAB T=1 TAB CLOSEALLOTHERS ONDOWNLOAD FOLDER=* FILE=* WAIT=YES
When the VBA script runs, iMacros displays a "download not detected" message. I've tried this in both the iMacros browser and the IE browser and got the same result. I've also tried specifying the file name and the file location and get the same results. I've also tried using a different file extension like "xlsx" and get the same results. I've also tried using "SET !USE_DOWNLOADMANAGER NO" and "SET !USE_DOWNLOADMANAGER YES". No difference.Code: Select all
IM = "" IM = "CODE:" IM = IM + "TAB T=1" + vbNewLine IM = IM + "TAB CLOSEALLOTHERS" + vbNewLine IM = IM + "SET !TIMEOUT_STEP 60" + vbNewLine IM = IM + "ONDOWNLOAD FOLDER=* FILE=* WAIT=YES" + vbNewLine IM = IM + "WAIT SECONDS=10" + vbNewLine iret = iim1.iimPlay(IM)
Any suggestions on resolving this issue would be greatly appreciated. I'm not sure if this is an Office 365 or iMacros or some internal security issue or even something else that is causing this situation.
Here is my system info:Thanks for your help. I appreciate you taking the time to look at this........Code: Select all
Windows 7 Enterprise 32 bit operating system Office 365 (Excel 2016) iMacros 10.3.27.5830

- (F)CI(M) = (Full) Config Info (Missing): iMacros + Browser + OS (+ all 3 Versions + 'Free'/'PE').
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...
- I don't even read the Qt if that (required) Info is not mentioned...!
- Script & URL help a lot for more "educated" Help...