Direkt zum Inhalt
Startseite

Main navigation

  • Startseite
  • Neue Frage stellen!
User account menu
  • Anmelden

Pfadnavigation

  1. Startseite

Mit Lotusscript eine Excel-Tabelle erstellen und mit Daten aus dem Notes-Dokument füllen

By M3S, 7 Januar, 2021

In diesem Beispiel wird eine Excel-Tabelle erstellt, die Überschriften gesetzt und von einem Notes-Dokument die Felder als Spalte in die Excel-Tabelle übertragen.

 

    Dim xlApp As Variant
    Dim xlSheet As Variant
    Dim doc as notesdocument
    set doc = "Hier wird das Notes-Dokument gesetzt!"
    Set xlApp = CreateObject("Excel.Application")
    xlApp.Visible = True
    xlApp.Workbooks.Add
    xlApp.ReferenceStyle = 2
    xlApp.StatusBar = "Hier kommt deine Statusmeldung !"
    Set xlSheet = xlApp.Workbooks(1).Worksheets(1)
    ' Titelzeile
    xlSheet.Cells(1,1) = "Überschrift Spalte 1"
    xlSheet.Cells(1,2) = "Überschrift Spalte 2"
    xlSheet.Cells(1,3) = "Überschrift Spalte 3"
    xlSheet.Cells(1,4) = "Überschrift Spalte 4"
    ' 2. Zeile
    xlSheet.Cells(2,1) = doc.GetItemValue("DeinFeld1")(0)
    xlSheet.Cells(2,2) = doc.GetItemValue("DeinFeld2")(0)
    xlSheet.Cells(2,3) = doc.GetItemValue("DeinFeld3")(0)
    xlSheet.Cells(2,4) = doc.GetItemValue("DeinFeld4")(0)

    xlApp.StatusBar = "Formatiere Zellen  !"
    xlApp.Range(xlSheet.Cells(4,1), xlSheet.Cells(row,15)).Select
    xlApp.Selection.Columns.AutoFit
    xlApp.Range("A1").Select
    xlApp.StatusBar = "Fertig  !"

 

 

Tags

  • Excel
  • Lotusscript

Neueste Kommentare

  • Fragen zu Drupal 10 Cache

    3 Tage 13 Stunden ago
    4 Wege um Drupal Cache zu löschen / leeren?
    Read more
  • Solution:
    sudo chmod 777 -R…

    1 Woche 5 Tage ago
    User warning: mkdir(): Permission Denied in FileStorage->createDirectory() (Line 123 in web/core/lib/Drupal/Component/PhpStorage/FileStorage.php).
    Read more
  • Alternativ mit SFTP : 
    sftp…

    1 Woche 5 Tage ago
    Server-to-Server Transfer - Download vie SCP / SSH / SFTP
    Read more
  • Plesk

    4 Wochen 1 Tag ago
    PHPStan failed - PHP Fatal error: Trait "Symfony\Bridge\PhpUnit\Legacy\PolyfillAssertTrait" not found in
    Read more
  • Das hilft: symfony/phpunit-bridge + chmod 777

    4 Wochen 2 Tage ago
    PHPStan failed - PHP Fatal error: Trait "Symfony\Bridge\PhpUnit\Legacy\PolyfillAssertTrait" not found in
    Read more
  • Solution ( ~/bash_profile ):…

    1 Monat ago
    Drush Error / PHP Warning: Phar::mapPhar(): open_basedir restriction in effect.
    Read more
  •  
     
    Backup Web & DB:
    drush…

    4 Wochen 1 Tag ago
    Drush 10 - sql:dump & compress backup to .gz file
    Read more
  • Das funktioniert:
    /usr/local…

    3 Monate ago
    phpenv: composer: command not found
    Read more
  • Die Lösung ist:

    # export…

    8 Monate ago
    Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
    Read more
  • IT ist Grundlage der EDV

    7 Monate ago
    Gibts Unterschied zwischen EDV und IT?
    Read more

Tools

  • Cookie settings
  • Inhalt hinzufügen
  • Neuester Inhalt

Fußbereich

  • Allgemeine Geschäftsbedingungen - Datenschutz - Impressum