I encountered a word operation problem when I was working on the project, so I went online to find relevant information and hoped to help you.
// If the URL is blank, you do not need to open the certificate
VaR S = " Sad " ;
If (URL = Null | URL = "" )
Return ;
Tanger_ocx_obj = Document. All. Item ( " Tanger_ocx " );
Tanger_ocx_obj.openfromurl (URL );
// Parameter format "parameter name 1: parameter value 1; parameter name 2: parameter value 2 ;......."
VaR Para = Para. Split ( " ; " );
For ( VaR I = 0 ; I < Para. length; I ++ )
{
VaR Item = Para [I]. Split ( " : " );
Tanger_ocx_obj.activedocument.content.find.execute ( " {# " + Item [ 0 ] + " #} " , False , False , False , False , False , True , 1 , False , Item [ 1 ], 2 );
// Update the header ID
If (Item [ 0 ] = " No. " )
{
Tanger_ocx_obj.activedocument.storyranges ( 7 ). Find. Execute ( " {# " + Item [ 0 ] + " #} " , False , False , False , False , False , True , 1 , False , Item [ 1 ], 2 );
}
}