Autoejecutar macro al abrir libro de trabajo

N4ch0

New Member
Joined
Mar 11, 2003
Messages
2
Hola, este es mi primer post asi que aprovecho para saludar :D

Necesito saber como hacer para que al abrir un archivo de excel (libro de trabajo) se ejecute una macro.

Gracias.
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Bienvenido al grupo !


Tu prunta es fácil de responder. Lo único que tienes que hacer es incluir un procedimiento que tenga el encabezado:

Private Sub Workbook_Open()

En la hoja "ThisWorkbook"

Todo lo que esté en ese procesimiento se ejecutará en cuanto (y sólo cuando) se abra el libro


Saludos
José Antonio
 
Upvote 0

Forum statistics

Threads
1,215,332
Messages
6,124,314
Members
449,153
Latest member
JazzSingerNL

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