Me ocurrio lo siguiente y no se si es un bug del programa. Estoy usando Excel 97 :
Tengo una macro que cuando llega a la siguiente sentencia
Sheets("Hoja1").Columns("C:C").Hidden = True
ocurre "Error 13 en tiempo de ejecución. El tipo no coincide".
Lo curioso es que el error solo ocurre cuando al momento de ejecutarse la sentencia se encuentra seleccionado un gráfico. Si se encuentra seleccionada una celda el error NO ocurre.
Y lo más curioso es que si cambio la sentencia por la siguiente
Sheets(1).Columns(3).Hidden = True
el error no ocurre por más que este seleccionado un grafico.
Saludos y gracias.
Tengo una macro que cuando llega a la siguiente sentencia
Sheets("Hoja1").Columns("C:C").Hidden = True
ocurre "Error 13 en tiempo de ejecución. El tipo no coincide".
Lo curioso es que el error solo ocurre cuando al momento de ejecutarse la sentencia se encuentra seleccionado un gráfico. Si se encuentra seleccionada una celda el error NO ocurre.
Y lo más curioso es que si cambio la sentencia por la siguiente
Sheets(1).Columns(3).Hidden = True
el error no ocurre por más que este seleccionado un grafico.
Saludos y gracias.