Guest User

Untitled

a guest
Feb 20th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Function Kvartal(cel)
  2. Kvartal = Format(cel, "K" & "q" & " - " & "yyyy")
  3.  
  4. End Function
  5.  
  6. Sub Sample()
  7. Dim currentSheet As Worksheet
  8. Dim lRow As Long
  9.  
  10. Set currentSheet = ThisWorkbook.Sheets("Admin")
  11.  
  12. With currentSheet
  13. lRow = .Range("A" & .Rows.Count).End(xlUp).Row
  14.  
  15. .Range("J2:J" & lRow).Formula = Kvartal
  16. End With
  17. End Sub
Add Comment
Please, Sign In to add comment