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: Makro, dass nach Eingabe Formel generiert

Empfohlene Antworten

Veröffentlicht

Hallo,

folgendes Makro hab ich geschrieben:


Sub Worksheet_Change(ByVal Target As Range)
'Sub test()
Dim rng As Range
Dim row As Integer
Dim col As Integer

'Zeile und Spalte ermitteln
row = Selection.row
If Selection.Column = 1 Then col = 5
If Selection.Column = 2 Then col = 4
If Selection.Column = 3 Then col = 3
If Selection.Column = 4 Then col = 2
If Selection.Column = 5 Then col = 1

Application.ScreenUpdating = False
For Each rng In Selection
'Formel in F eintragen
rng.Offset(0, col).Value = "=(B" & row & "-C" & row & ")/E" & row
Next rng
End Sub
[/PHP]

Als ich noch den zweiten Header verwendet hab und das Makro per Tastenkombi aufrief, da hat es funktioniert.

Aber jetzt soll es ausgeführt werden, wenn ich etwas in die Zellen A2:En eingebe.

Leider reagiert das Makro dann aber gar nicht, obwohl doch mein jetztiger Header dafür sorgen sollte.

Wie kommt das?

Für jede Hilfe dankbar,

Sia

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.