my $range = $word->ActiveDocument->Content; $range->Find->Execute( { FindText => 'google.com', ReplaceWith => 'google.com', Replace => $const->{'wdReplaceAll'}, } );