I’m looking into creating a macro or something that would allow me to take info from specific cells and add it to a text file which the result has to look like as below:
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
> </o
>
epipe 12193934 customer 2 create<o
></o
>
description "RS19-BVA0277-Telecom-3934"<o
></o
>
endpoint Epipe_Telecom_3934 create <o
></o
>
revert-time 90 <o
></o
>
exit <o
></o
>
sap 1/1/5:3934 create <o
></o
>
exit <o
></o
>
spoke-sdp 1119:12193934 endpoint Epipe_Telecom_3934 create<o
></o
>
precedence primary <o
></o
>
exit <o
></o
>
spoke-sdp 1219:12193912 endpoint Epipe_Telecom_3934 create<o
></o
>
exit <o
></o
>
no shutdown <o
></o
>
exit<o
></o
>
<o
> </o
>
All the value ='All RS 7705-Service Epipe'!x190 are from Worksheet ALL RS 7705-Service Epipe cell x, I’m having a few hundred row, but all info for a specific epipe are on the same line, in this example its all on row 190, but different column.
Below example show the pattern:
<o
> </o
>
epipe ='All RS 7705-Service Epipe'!C190 customer 2 create<o
></o
>
description "='All RS 7705-Service Epipe'!E190"<o
></o
>
endpoint ='All RS 7705-Service Epipe'!F190 create <o
></o
>
revert-time 90 <o
></o
>
exit <o
></o
>
sap ='All RS 7705-Service Epipe'!H190 create <o
></o
>
exit <o
></o
>
spoke-sdp ='All RS 7705-Service Epipe'!I190 endpoint ='All RS 7705-Service Epipe'!F190 create<o
></o
>
precedence primary <o
></o
>
exit <o
></o
>
spoke-sdp ='All RS 7705-Service Epipe'!K190 endpoint ='All RS 7705-Service Epipe'!F190 create<o
></o
>
exit <o
></o
>
no shutdown <o
></o
>
exit<o
></o
>
<o
> </o
>
or
<o
> </o
>
Can I build something that would set a variable and pull the info from a worksheet, but I just don’t know how to do and where to start?
<o
> </o
>
epipe $A customer 2 create<o
></o
>
description "$B"<o
></o
>
endpoint $C create <o
></o
>
revert-time 90 <o
></o
>
exit <o
></o
>
sap $D create <o
></o
>
exit <o
></o
>
spoke-sdp $E endpoint $F create<o
></o
>
precedence primary <o
></o
>
exit <o
></o
>
spoke-sdp $G endpoint $F create<o
></o
>
exit <o
></o
>
no shutdown <o
></o
>
exit<o
></o
>
<o
> </o
>
$A='All RS 7705-Service Epipe'!C190<o
></o
>
$B='All RS 7705-Service Epipe'!E190<o
></o
>
$C='All RS 7705-Service Epipe'!F190<o
></o
>
$D='All RS 7705-Service Epipe'!H190<o
></o
>
$E='All RS 7705-Service Epipe'!I190<o
></o
>
$F='All RS 7705-Service Epipe'!F190<o
></o
>
$G='All RS 7705-Service Epipe'!K190<o
></o
>
<o
> </o
>
Not sure what is the best way to built this.<o
></o
>
Can it be built just using a macro in Excel or using MS Word and pulling nfo from Excel?
Thanks for your support!
Sylvain
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
epipe 12193934 customer 2 create<o
description "RS19-BVA0277-Telecom-3934"<o
endpoint Epipe_Telecom_3934 create <o
revert-time 90 <o
exit <o
sap 1/1/5:3934 create <o
exit <o
spoke-sdp 1119:12193934 endpoint Epipe_Telecom_3934 create<o
precedence primary <o
exit <o
spoke-sdp 1219:12193912 endpoint Epipe_Telecom_3934 create<o
exit <o
no shutdown <o
exit<o
<o
All the value ='All RS 7705-Service Epipe'!x190 are from Worksheet ALL RS 7705-Service Epipe cell x, I’m having a few hundred row, but all info for a specific epipe are on the same line, in this example its all on row 190, but different column.
Below example show the pattern:
<o
epipe ='All RS 7705-Service Epipe'!C190 customer 2 create<o
description "='All RS 7705-Service Epipe'!E190"<o
endpoint ='All RS 7705-Service Epipe'!F190 create <o
revert-time 90 <o
exit <o
sap ='All RS 7705-Service Epipe'!H190 create <o
exit <o
spoke-sdp ='All RS 7705-Service Epipe'!I190 endpoint ='All RS 7705-Service Epipe'!F190 create<o
precedence primary <o
exit <o
spoke-sdp ='All RS 7705-Service Epipe'!K190 endpoint ='All RS 7705-Service Epipe'!F190 create<o
exit <o
no shutdown <o
exit<o
<o
or
<o
Can I build something that would set a variable and pull the info from a worksheet, but I just don’t know how to do and where to start?
<o
epipe $A customer 2 create<o
description "$B"<o
endpoint $C create <o
revert-time 90 <o
exit <o
sap $D create <o
exit <o
spoke-sdp $E endpoint $F create<o
precedence primary <o
exit <o
spoke-sdp $G endpoint $F create<o
exit <o
no shutdown <o
exit<o
<o
$A='All RS 7705-Service Epipe'!C190<o
$B='All RS 7705-Service Epipe'!E190<o
$C='All RS 7705-Service Epipe'!F190<o
$D='All RS 7705-Service Epipe'!H190<o
$E='All RS 7705-Service Epipe'!I190<o
$F='All RS 7705-Service Epipe'!F190<o
$G='All RS 7705-Service Epipe'!K190<o
<o
Not sure what is the best way to built this.<o
Can it be built just using a macro in Excel or using MS Word and pulling nfo from Excel?
Thanks for your support!
Sylvain