Como podría reemplazar datos de una celda.

scroboxp

New Member
Joined
Aug 23, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Buenas con todos.

Primero saludarlos y agradecerles que me permitan ingresar al foro.

Estoy desarrollando un registro de notas y me gustaría que cuando el usuario escribe cualquier letra o numero o símbolo, este valor se cambie por una "X".

POr ejemplo, en las celdas (A1:C33) el usuario escriba una "P" y esta se cambia automáticamente a una "X"

Espero su comprensión , soy nuevo en esto y quiero mejorar cada día mas.

Muchas gracias por su tiempo.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Solución sin usar macros:
  1. Selecciona el rango de celdas A1:C33
  2. Clic con el botón derecho del ratón
  3. Formato de celdas
  4. Número -> Categoría -> Personalizada
  5. Escribe Tipo: ;;;"X"
En las celdas hay un valor "P" pero se muestra una "X".

1629817535801.png
 
Upvote 0
Solución usando macros: Cambia el valor introducido "P" por una "X".

Copia este código VBA para el evento de la hoja:

VBA Code:
Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Row < 34 And Target.Column < 4 Then
        Target.Value2 = "X"
    End If
End Sub

1629818080015.png
 
Upvote 0
muchisismas gracias pedrowave, eres el mejor, realmente son un grupo de personas muy atentas y amables, Les estoy muy agradecidos. (y)(y)
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,449
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top