jonnyp138
Board Regular
- Joined
- May 2, 2015
- Messages
- 50
- Office Version
- 365
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
- 2003 or older
- Platform
- Windows
- MacOS
- Mobile
- Web
Can anyone help with a vba script that will strip each server host and ip address from column B into a new line in a new sheet and apply the solution from column A next to each server in the new sheet?
Example: Current Layout
[TABLE="width: 630"]
<colgroup><col width="77"><col width="553"></colgroup><tbody>[TR]
[TD="width: 77"]Solutions[/TD]
[TD="width: 553"]Hosts[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 630"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Solution1[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution2[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution3[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution4[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution5[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution6[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution7[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution8[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution9[/TD]
[TD]Server3 [10.150.0.251], Server4 [10.150.8.252], Server3 [10.150.8.251]
[/TD]
[/TR]
[TR]
[TD]Solution10[/TD]
[TD]Server5 [10.150.0.157], Server6 [10.150.0.153][/TD]
[/TR]
</tbody>[/TABLE]
Each server needs seperating to a seperate line with the correct solution next to it?
Hope this makes sense
Example: Current Layout
[TABLE="width: 630"]
<colgroup><col width="77"><col width="553"></colgroup><tbody>[TR]
[TD="width: 77"]Solutions[/TD]
[TD="width: 553"]Hosts[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 630"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD]Solution1[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution2[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution3[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution4[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution5[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution6[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution7[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution8[/TD]
[TD]Server1 [10.150.0.157], Server2 [10.150.0.153][/TD]
[/TR]
[TR]
[TD]Solution9[/TD]
[TD]Server3 [10.150.0.251], Server4 [10.150.8.252], Server3 [10.150.8.251]
[/TD]
[/TR]
[TR]
[TD]Solution10[/TD]
[TD]Server5 [10.150.0.157], Server6 [10.150.0.153][/TD]
[/TR]
</tbody>[/TABLE]
Each server needs seperating to a seperate line with the correct solution next to it?
Hope this makes sense