gmooney
Active Member
- Joined
- Oct 21, 2004
- Messages
- 254
- Office Version
- 365
- Platform
- Windows
Hi,
I have the following code that essentially looks for a downloaded file before launching the URL and automatically downloading a file.
I want the Excel file to return to focus but this code is not and it is staying on the web browser, thus I have to click on Excel from the taskbar. Any ideas how to get Excel back to be displayed?
I have the following code that essentially looks for a downloaded file before launching the URL and automatically downloading a file.
I want the Excel file to return to focus but this code is not and it is staying on the web browser, thus I have to click on Excel from the taskbar. Any ideas how to get Excel back to be displayed?
VBA Code:
Sub GetURL()
Dim NewURL As String
Dim FollowURL As String
NewURL = ThisWorkbook.Sheets("Category Review").Range("AP107").Value
CheckforDuplicateDownloadFile
ThisWorkbook.FollowHyperlink NewURL
'Sheets("Instructions").Select
AppActivate "Category Review Builder"
WaitForFileDownload
BuildMyCategoryReview