UiPath Documentation
studiox
2021.10
false
StudioX-Benutzerhandbuch
Wichtig :
Es kann 1–2 Wochen dauern, bis die Lokalisierung neu veröffentlichter Inhalte verfügbar ist.

Tutorial: Formatieren von Zellen

In diesem Tutorial erstellen wir eine einfache Automatisierung, die ein Format auf die Zellen in der Kopfzeile einer Kalkulationstabelle und ein anderes Format auf die Zellen in der ersten Spalte derselben Kalkulationstabelle anwendet. Wir wenden jedes Format auf eine Zelle im Projekt-Notebook des Projekts an und verwenden dann zwei Aktivitäten vom Typ Bereich kopieren , um das Format jeder Zelle in die gewünschte Zeile und Spalte in unserer Kalkulationstabelle zu kopieren.

  1. Schritt 1: Projekt einrichten und erforderliche Dateien abrufen.

    1. Create a new blank project using the default settings.
    2. Laden Sie das Archiv mit dem Automatisierungsprojekt in diesem Tutorial herunter und extrahieren Sie es mit der Schaltfläche am unteren Rand dieser Seite. Kopieren Sie die Datei DoubleUI.xlsx Ihren Projektordner.
  2. Schritt 2: Anwenden der gewünschten Formate auf zwei Zellen im Projektnotizbuch

    1. Klicken Sie im StudioX-Menüband auf Projektnotizbuch. Die Datei Project_Notebook.xlsx wird geöffnet.

    2. Wenden Sie das folgende Format für die erste Spalte auf Zelle A1 im Scratchpad-Blatt des Projektnotizbuchs an:

      • Füllfarbe: Hellblau
      • Zahlenformat mit zwei Dezimalstellen
    3. Wenden Sie das folgende Format für die Kopfzeile auf Zelle B1 im Scratchpad-Blatt des Projektnotizbuchs an:

      • Füllfarbe: Hellgrau
      • Schriftstil: Fett
    4. Speichern und schließen Sie das Projektnotizbuch.

  3. Schritt 3: DoubleUI.xlsx zum Projekt hinzufügen und Formate in die Spalte und Zeile kopieren.

    Die Formatierung wird aus den beiden Zellen im Scratchpad-Blatt der Projektnotizbuch-Datei in die Kopfzeile und die erste Spalte der DoubleUI-Datei kopiert.

    1. Click Add activity Dokumentationsbild in the Designer panel, and then find the Use Excel File activity in the search box at the top of the screen and select it. A Use Excel File activity is added to the Designer panel.

    2. In der Aktivität:

      • Click BrowseDokumentationsbild next to the Excel file field, and then browse to and select the file DoubleUI.xlsx

      • Geben Sie im Feld Referenzieren als DoubleUI ein.

        Sie haben angegeben, dass Sie mit der Datei DoubleUI.xlsx arbeiten werden, die in Ihrer Automatisierung als „DoubleUI“ bekannt ist.

    3. In the Use Excel File activity, click Add activity Dokumentationsbild , then find the Copy Range activity in the search box at the top of the screen and double-click it. The activity is added inside the Use Excel File activity.

    4. In der Aktivität „Bereich kopieren“ (Copy Range):

      • Click PlusDokumentationsbild on the right side of the Source range field, and then select Project Notebook (Notes) > Indicate in Excel.

      • In the Excel file, select cell A1 in the Scratchpadsheet, and then click Confirm in the UiPath tab in the Excel ribbon.

        Sie haben angegeben, dass Sie die Zelle A1 aus dem Scratchpad-Blatt des Projektnotizbuchs kopieren möchten.

      • Click PlusDokumentationsbild on the right side of the Destination range field, and then select DoubleUI > Indicate in Excel.

      • Wählen Sie in der Excel-Datei die gesamte Spalte A aus, und klicken Sie anschließend auf der UiPath-Registerkarte des Excel-Menübands auf Bestätigen.

        Sie haben angegeben, dass Sie die Daten in die erste Spalte in der DoubleUI-Datei einfügen möchten.

      • From the What to copy drop-down menu, select Formats to indicate that only the cell formatting should be copied.

    5. Fügen Sie eine zweite „Bereich kopieren“-Aktivität (Copy Range) direkt unterhalb der vorhandenen hinzu.

    6. In der zweiten Aktivität Bereich kopieren (Copy Range):

      • Click PlusDokumentationsbild on the right side of the Source range field, and then select Project Notebook (Notes) > Indicate in Excel.

      • In the Excel file, select cell B1 in the Scratchpadsheet, and then click Confirm in the UiPath tab in the Excel ribbon.

        Sie haben angegeben, dass Sie die Zelle B1 aus dem Scratchpad-Blatt des Projektnotizbuchs kopieren möchten.

      • Click PlusDokumentationsbild on the right side of the Destination range field, and then select DoubleUI > Indicate in Excel.

      • Wählen Sie in der Excel-Datei die Kopfzeile (Bereich A1:D1) aus, und klicken Sie dann auf der UiPath-Registerkarte im Excel-Menüband auf Bestätigen.

        Sie haben angegeben, dass Sie die Daten in den Bereich A1:D1 in der DoubleUI-Datei einfügen möchten.

      • From the What to copy drop-down menu, select Formats to indicate that only the cell formatting should be copied.

    7. Um die „Bereich kopieren“-Aktivitäten (Copy Range) leichter identifizierbar zu machen, bearbeiten Sie den Namen in der oberen Leiste jeder einzelnen. Verwenden Sie beispielsweise Copy Format Column für die erste Aktivität und Copy Format Row für die zweite Aktivität.

    8. Klicken Sie im StudioX-Menüband auf Speichern, um die Automatisierung zu speichern, und klicken Sie dann auf Ausführen, um die Automatisierung auszuführen.

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben