Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
<bParameters                       Path

DCI_SIMPLE_APP_CONTROL_WORD        Category 1/Sample App
DCI_SIMPLE_APP_STATUS_WORD         Category 1/Sample App 
DCI_BLE_TEST_SETTING_1             Category 1
DCI_BLE_TEST_SETTING_A             Category 1/Group 1/Category A
DCI_BLE_TEST_SETTING_B             Category 1/Group 1/Category A
DCI_BLE_TEST_SETTING_C             Category 1/Group 1/Category A
DCI_BLE_TEST_SETTING_D             Category 1/Group 1/Category A
DCI_BLE_TEST_SETTING_E             Category 1/Group 1/Category A
DCI_BLE_TEST_SETTING_F             Category 1/Group 1/Category A
DCI_BLE_TEST_SETTING_2             Category 1
DCI_BLE_TEST_SETTING_3             Category 1
DCI_BLE_TEST_READING_1             Category 2 
DCI_BLE_TEST_SETTING_4             Category 2 
DCI_BLE_TEST_READING_2             Category 2 
DCI_BLE_TEST_READING_3             Category 2 
DCI_BLE_TEST_SETTING_5             Category 2 
DCI_BLE_TEST_SETTING_6             Category 2 
DCI_BLE_TEST_SETTING_7             Category 2



Parameter and path are 2 columns in sheet.
Here i have parameters to be printed based on the path. The path has to look like below.
The parameters should be categorized in to categories. I need VBA script to print the same path below in generated file.

XML
"Category 1": {
"Setting 1": {

}
"Group 1": {
"Category A": {
"Setting A": { 

}
"Setting B": { 

}
"Setting C": {

}
"Setting D": {

}
"Setting E": {

}
"Setting F": {

}
}
} 
"Setting 2": {

}
"Setting 3": {

}
"Sample App": {

}
"Category 2": {	

"Reading 1": {

}
"Setting 4": {

}
"Setting 5": {

}
"Setting 6": {

}
"Setting 7": {

}
"Reading 2": {

}
"Reading 3": {

}
}


What I have tried:

I posted the same question in Excel forum and mr.excel.com. Below are the links attached. But still i didn't get any response regarding to my query. Please let me know the solution to the issue.

[^]

How to separate values by path??[^]
Posted
Updated 27-Mar-18 10:20am
v3
Comments
CHill60 27-Mar-18 12:18pm    
Don't post links to other forums, post the code that you have tried. You will also note the harsh responses you are getting on those other forums e.g. "No further help to be offered, please, until the OP has complied with this request. "
Your expected results don't seem to match your input so we absolutely need to see your code or at the very least the logic you have applied to get those results

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900