Bienvenido a la mayor comunidad de usuarios EXCEL

Regístrate gratis ahora para ver contenidos y descargas sin restricciones!

Regístrate gratis

AYUDA: ERROR EN MACRO DE RELLENO

franco.ventas.26

New member
Registrado
22 Ago 2017
Mensajes
5
BUENAS TARDES A TODOS

LES COMENTO QUE ME ESTA DANDO ERRORES UNA MACRO DEL MODULO 1 / EN Sub Relleno Y Sub Relleno2

LAS 2 LAS PUSE PORQUE NECESITO QUE ME RELLENE CON UN "0" LAS CELDAS VACÍAS EN...
Para poder visualizar el resto de este tema y sus adjuntos:
. Si nunca te has registrado puedes registrarte gratis aquí
. Si ya te has registrado debes
iniciar sesión aquí
 

Adjuntos

Adjuntos

Hola

Revise la macro que me enviaste pero no pude adaptarla a mi caso

te adjunto el archivo con ejemplos donde se ve el resultado de la macro relleno (hoja Vendido)

la idea principal es que en...
Para poder visualizar el resto de este tema y sus adjuntos:
. Si nunca te has registrado puedes registrarte gratis aquí
. Si ya te has registrado debes
iniciar sesión aquí
 

Adjuntos

Para la hoja carpintero la macro seria así¿?
Código:
Sub Relleno()
Dim i%

Range("B2:B10") = ""
For i = 2 To 10
    If Range("C" & i) <> "" Or Range("E" & i) <> "" Or Range("F" & i) <> "" Then...
Para poder visualizar el resto de este tema y sus adjuntos:
. Si nunca te has registrado puedes registrarte gratis aquí
. Si ya te has registrado debes
iniciar sesión aquí
 
Yo lo he visto así:
Código:
Sub PonerCeros()
Fila = Range("D29").End(xlUp).Row
FilaG = Range("G29").End(xlUp).Row
If FilaG > Fila Then Fila = FilaG
If Fila > 1 Then Range("B2:B" & Fila) = 0
End Sub...
Para poder visualizar el resto de este tema y sus adjuntos:
. Si nunca te has registrado puedes registrarte gratis aquí
. Si ya te has registrado debes
iniciar sesión aquí
 
seria así:
Código:
Sub Relleno()
Dim i%

For i = 2 To 10
    If Range("B" & i) = "" And (Range("C" & i) <> "" Or Range("E" & i) <> "" Or Range("F" & i) <> "") Then
     Range("B" & i) = 0
    End If...
Para poder visualizar el resto de este tema y sus adjuntos:
. Si nunca te has registrado puedes registrarte gratis aquí
. Si ya te has registrado debes
iniciar sesión aquí
 
Volver
Arriba