Help for this page

Select Code to Download


  1. or download this
    use Win32::OLE;
    use Win32::OLE::Const 'Microsoft.Word';
    ...
                return;
            }
    
  2. or download this
    use Win32::OLE;
    my $word = Win32::OLE->GetActiveObject('Word.Application')
          || Win32::OLE->new( 'Word.Application', 'Quit' );
    
    my $wd_const = Win32::OLE::Const->Load($word);
    
  3. or download this
            if ( !$selection->GoTo( $wd_const->{wdGoToBookmark}, 0, 0, $bo
    +okmark ) ) {
            
                $LOGGER->warn("Could not find bookmark $bookmark");
                return;
            }