zaer00t

MACROS

Jul 25th, 2024
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VBScript 0.43 KB | Source Code | 0 0
  1. Sub ReemplazarTextoV01()
  2.     Dim ws As Worksheet
  3.     Dim rng As Range
  4.     Dim cell As Range
  5.  
  6.     ' Establece la hoja de trabajo activa
  7.    Set ws = ThisWorkbook.Sheets("Backlog")
  8.     Set rng = ws.Range("D1:D" & ws.Cells(ws.Rows.Count, "D").End(xlUp).Row)
  9.  
  10.     ' Reemplazar "V0#" por "Veracruz"
  11.    For Each cell In rng
  12.         If cell.Value Like "V0#" Then
  13.             cell.Value = "Veracruz"
  14.         End If
  15.     Next cell
  16. End Sub
Tags: vba
Advertisement
Add Comment
Please, Sign In to add comment