Hello All.
I need to complete a price of different articles on a website and they give me the data in Excel.
I explain:
Every week they send me an Excel with different article prices and I have to update those on the web. The Excel are two columns, one with the ID field and the other with the Price being as follows:
My idea is, massively change prices on the web by pressing a button on the excel.
For them I have the following code:
The code works for me manually changed, but I need it to go through the two columns of data and make the change massively
I finally put the code with an example of the table I put above so that you understand how it should be but with each value.
Let's see if you can help me.
Regards, and thank you very much.
I need to complete a price of different articles on a website and they give me the data in Excel.
I explain:
Every week they send me an Excel with different article prices and I have to update those on the web. The Excel are two columns, one with the ID field and the other with the Price being as follows:
My idea is, massively change prices on the web by pressing a button on the excel.
For them I have the following code:
Code:
Sub Datos_Web
Dim IE As Object
Set IE = CreateObject ("Internet Explorer.aplication")
IE.Navigate "https://www.00000.es/000000_edit.php?editid1=[SIZE=4][U][B]Complete with the data in column A[/B][/U][/SIZE]"
Do
DoEvents
Loop Until IE.ReadyState = 4
IE.Document.getelementbyid("value_precio_1).Value = "Price [SIZE=4][U][B]Complete with the data in column B[/B][/U][/SIZE]"
IE.Document.getelementbyid ("saveButton1").click
IE.Visible = False
End Sub
The code works for me manually changed, but I need it to go through the two columns of data and make the change massively
I finally put the code with an example of the table I put above so that you understand how it should be but with each value.
Code:
Sub Datos_Web
Dim IE As Object
Set IE = CreateObject ("Internet Explorer.aplication")
IE.Navigate "https://www.00000.es/000000_edit.php?editid1=[B]11122597[/B]"
Do
DoEvents
Loop Until IE.ReadyState = 4
IE.Document.getelementbyid("value_precio_1).Value = "Precio [B]23.5[/B]"
IE.Document.getelementbyid ("saveButton1").click
IE.Visible = False
End Sub
Let's see if you can help me.
Regards, and thank you very much.