Vasilchyk Vladik
New Member
- Joined
- Jan 24, 2023
- Messages
- 7
- Office Version
- 365
- 2021
- Platform
- Windows
Good day
In general, such a question.
There is an excel file with fields
and there is an xml file of this format
The task is that when you press a button in Excel from the desired line, focusing on the product id, information about the updated price is taken and the price in the xml file is updated with a reference to the product id.
That is, I change the price in Excel for 1 product to 12, and the second to 9, and press the macro start button. The price in the required xml file changes according to the principle for the product with id 101, the value in the <price></price> field changes from 10 to 12, and from 20 to 9 from id 102. Nothing else in this file changes.
Thanks for answers
And sorry for my bad english
In general, such a question.
There is an excel file with fields
ID | Name | Price |
101 | Pos#1 | 10 |
102 | Pos#2 | 20 |
and there is an xml file of this format
XML:
<offer available="true" id="101">
<price>10</price>
<currencyId>UAH</currencyId>
<categoryId>91456</categoryId>
<name>Товар №1</name>
<description><![CDATA[
<p>AAAAA.</p>]]></description>
<vendorCode>90/5</vendorCode>
<stock_quantity>1</stock_quantity>
</offer>
The task is that when you press a button in Excel from the desired line, focusing on the product id, information about the updated price is taken and the price in the xml file is updated with a reference to the product id.
That is, I change the price in Excel for 1 product to 12, and the second to 9, and press the macro start button. The price in the required xml file changes according to the principle for the product with id 101, the value in the <price></price> field changes from 10 to 12, and from 20 to 9 from id 102. Nothing else in this file changes.
Thanks for answers
And sorry for my bad english