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 Formeln reagieren nach übergabe nicht

Empfohlene Antworten

Bis jetzt habe ich folgenden Quelltext in Delphi entworfen

flcid:=GetUserDefaultLCID;

ExcelApp.Connect;

h := ExtractFilePath(ParamStr (0));

if h[length(h)] <> '\'

then h := h + '\';

FileName := h + 'Beurteilung Seminare.xls'; ExcelWorkb.ConnectTo(ExcelApp.Workbooks.Open(filename,

emptyParam,

emptyParam,

emptyParam,

emptyParam,

emptyParam,

emptyParam,

emptyParam,

emptyParam,

emptyParam,

emptyParam,

emptyParam,

emptyParam, flcid));

ExcelWorks.ConnectTo(ExcelWorkb.Sheets.Item[1] as ExcelWorkSheet);

Dann füge ich aus der Datenbank einige Fragen und Antworten hinzu, dann möchte ich eine Auswertung machen das heißt 100/sum(Feldvon:Feldbis) * FeldAnzahl. das habe ich bis jetzt wie folgend gemacht:

hilf := '=(100/(summe('+soll+':'+bis+'))*'+ist+')';

ExcelWorks.Range[formel, formel].formula := hilf;

Wobei soll, bis, ist und formel die jeweils gesuchten Felder sind. So weit funktioniert mein Programm auch. Im Excel wird genau meine Formel übergeben, das problem ist nur das er es nicht berechnet, ich muss zuerst auf das Feld doppel klicken bis er es berechnet. Was ich natürlich nicht will. Ich denke das er erst mit dem doppelklick weis welche Felder er nehmen soll. Über das Makro habe ich noch eine andere Möglichkeit ermittelt:

ExcelWorks.Range[formel,formel].value := '=100/(SUM(R[-1]C[+'+soll+']:R[-1]C[-'+bis+'])*RC[-1]';

aber mit diesem Quelltext bekomme ich immer einen Ole-Fehler. Wenn ich nun die Formel von Hand in Excel schreibe, kann Excel damit auch nichts anfangen. Wieso? Wie schaffe ich es das er meine Formel erkennt und automatisch berechnet??

Eure Nausi

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Konto

Navigation

Suchen

Suchen

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.