Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function Kvartal(cel)
- Kvartal = Format(cel, "K" & "q" & " - " & "yyyy")
- End Function
- Sub Sample()
- Dim currentSheet As Worksheet
- Dim lRow As Long
- Set currentSheet = ThisWorkbook.Sheets("Admin")
- With currentSheet
- lRow = .Range("A" & .Rows.Count).End(xlUp).Row
- .Range("J2:J" & lRow).Formula = Kvartal
- End With
- End Sub
Add Comment
Please, Sign In to add comment