Option Explicit
Sub AlleFormeln()
Dim wksBlatt As Worksheet, wksFormeln As Worksheet
Dim c As Range
Dim BlName As String
Dim fRow As Long
Set wksFormeln = Sheets("Formeln")
With wksFormeln
.Cells(1, 1) = "Blatt-Name"
.Cells(1, 2) = "Zell-Adresse"
.Cells(1, 3) = "Formel"
End With
For Each wksBlatt In ActiveWorkbook.Sheets
BlName = wksBlatt.Name
If BlName <> "Formeln" Then
For Each c In wksBlatt.UsedRange
If c.HasFormula Then
fRow = wksFormeln.Cells(Rows.Count, 1).End(xlUp).Row + 1
With wksFormeln
.Cells(fRow, 1) = BlName
.Cells(fRow, 2) = c.Address(0, 0)
.Cells(fRow, 3) = "'" & CStr(c.Formula)
End With
End If
Next c
End If
Next wksBlatt
End SubDa ich leider keine Makro-Erfahrung habe, wäre es toll wenn eure Hinweise nicht zu verkürzt ausfallen... ;)habe ich gelesen. Aber wenn ich schon kostenlose Lösungen liefere, dann muss einfach noch eine "Reserve" für meine zahlenden Kunden bleiben. Da ist solch ein Code natürlich kommentiert und auch noch etwas "eleganter". 8)
| Blatt-Name Zell-Adresse Formel Tabelle1 D2 =HLOOKUP(B2,$B$12:$F$13,2,FALSE) |
.Cells(fRow, 3) = "'" & CStr(c.Formula[color=red][b]Local[/b][/color])