¿es esto un bug?

gwatanab

New Member
Joined
Oct 6, 2002
Messages
26
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.
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Bueno, también me generó error en Excel 2000. Con este:

Sheets("Hoja1").Range("C:C").EntireColumn.Hidden = True

no puso problema... pero sí, está raro. Probaré esta noche en XP para ver si lo solucionaron o no.
 
Upvote 0

Forum statistics

Threads
1,215,427
Messages
6,124,830
Members
449,190
Latest member
rscraig11

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