Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Excel-Worksheet umbenennen (Perl)

Empfohlene Antworten

Hallo...

Ich programmiere z.Z. ein Tool mit Perl, welches Excel öffnet und ein neues Dokument erstellt. Soweit habe ich das ja hinbekommen. :)

Nun habe ich allerdings das Problem, das ich ja beim erstellen eine Leere Vorlage bekomme, d.h. ich habe drei leere Tabellen (Tabelle1, Tabelle2, Tabelle3). Neue Tabellen kann man ja einfach über Add("name") erstellen, aber ich habe noch keine Funktion zum umbennen gefunden.

Wäre schön wenn mir jmd helfen könnte....

Hier mein Code bis jetzt:

# Code Start

use strict;

use Win32::OLE;

use Win32::OLE::Const 'Microsoft Excel';

my $Excel = Win32::OLE->new("Excel.Application");

$Excel->{Visible} = 1;

my $Book = $Excel->Workbooks->Add;

my $Sheet = $Book->Worksheets->(1);

#Code Ende

P.S.: Es wäre auch noch super, wenn mir jemand noch erzählen könnte wie ich die Tabellen lösche... vielleicht mit remove("name") oder delete("name")??

Thx so far...

ok.

hat sich erledigt, ich hab mir wiedermal selbst geholfen..... :D

Der Code lautet:

$ExcelTabName = "Name der Tabelle";

$Sheet->{Name} = $ExcelTabName;

bis denne

Phoenix

Warum eigentlich in PERL und nicht in VBA?

Originally posted by Wasi

Warum eigentlich in PERL und nicht in VBA?

LoL !!!

SCNR

/Orbital

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.