Hi Guru's,
I have the below code working to automate the download starting process, but i can't for the life of me work out the Methods explained and code provided on several posts relating to the automation of the Save AS Process.
Please would someone kindly Help me.
"C:\Pricelists\Ralawise\" Is the target file location.
RalawisePrice is the desired filename.
I will need it to overwrite or Kill the existing files in the location too.
Thank you.
I have the below code working to automate the download starting process, but i can't for the life of me work out the Methods explained and code provided on several posts relating to the automation of the Save AS Process.
Please would someone kindly Help me.
"C:\Pricelists\Ralawise\" Is the target file location.
RalawisePrice is the desired filename.
I will need it to overwrite or Kill the existing files in the location too.
Thank you.
VBA Code:
Sub RalawiseAIE()
'to refer to the running copy of Internet Explorer
Dim IE As InternetExplorer
'open Internet Explorer in memory, and go to website
Set IE = New InternetExplorer
With IE
.Visible = True
.Navigate ("https://shop.ralawise.com/")
While .Busy Or .ReadyState <> 4: DoEvents: Wend
With .Document
If .querySelectorAll("button#login").length > 0 Then
.getelementbyid("EmailAddress").Value = "John.G@MPCembroidery.co.uk"
.getelementbyid("Password").Value = "*Password*" 'Not Real Password
.getelementbyid("login").Click
Else
End If
End With
.Navigate ("https://shop.ralawise.com/globalassets/webdatadownloads/distinctsku.zip")
End With
End Sub