Advertisement
Guest User

Untitled

a guest
Sep 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Sub num_de_palabras()
  2. '
  3. ' num_de_palabras Macro
  4. ' Crea una columna con el numero de palabras de la columna keywords
  5. '
  6. ' Acceso directo: Ctrl+Mayús+N
  7. '
  8. Range("G1").Value = "N de palabras"
  9. Range("G2").FormulaR1C1 = "=SUM(IF(LEN(TRIM(RC[-6]))=0,0,LEN(TRIM(RC[-6]))-LEN(SUBSTITUTE(RC[-6],"" "",""""))+1))"
  10. Range("G2").AutoFill Destination:=Range("G2:G" & Range("F1").End(xlDown).Row)
  11. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement