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.

Empfohlene Antworten

Veröffentlicht

Mit MS Visual C++:

Als erstes fügst Du das Excel-Automatisierungsinterface Deinem Projekt hinzu (sorry, nur Englisch):

ClassWizard->Automation-Add Class->From a type library

Datei im Office-Verzeichnis: Excel?.OLB (?: Je nach Version, z.B. 9 für Excel2k)

Dann kannst Du Excel starten oder Dich mit einer laufenden Excel-Session verbinden:


COleVariant covTrue((short)TRUE), covFalse((short)FALSE), covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
_Application app;

BOOL fConnectedToRunningExcel = FALSE;
CLSID clsid;
CLSIDFromProgID( L"Excel.Application", &clsid);
IUnknown *pUnk;
HRESULT hr = GetActiveObject(clsid, NULL, (IUnknown**)&pUnk);
if( SUCCEEDED( hr ) ) {
IDispatch *pDisp;
hr = pUnk->QueryInterface(IID_IDispatch, (void **)&pDisp);
if( SUCCEEDED( hr ) ) {
app.AttachDispatch( pDisp );
fConnectedToRunningExcel = TRUE;
}
pUnk->Release();
}
if( !fConnectedToRunningExcel ) {
if(!app.CreateDispatch(L"Excel.Application")) {
pUnk->Release();
return E_FAIL;
}
}
[/PHP]

Wie es dann weitergeht, hängt davon ab, ob die Excel-Datei schon geöffnet ist.

Kann ich das denn nicht im Excel selber über ein Makro machen??

hmm...naja, wenn er über den automatisierungsserver von excel gehen möchte wär er im richtigen forum ;)

@Klotzkopp:

ups, sorry, hast ja schon gepostet

Wo soll ich denn dann posten, wenn ich hier falsch bin???

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.