Hi Chavira55
Welcome to the Board.
What you need is an Event driven macro
Try the following;
****** content=Excel.Sheet name=ProgId>****** content="Microsoft Excel 9" name=Generator><LINK rel=File-List href="./sht_files/filelist.xml"><STYLE id=AAA_Instructions_VBAEnter_25753_Styles></STYLE>**
[TABLE="width: 456"]
<COLGROUP><COL style="WIDTH: 23pt; mso-width-source: userset; mso-width-alt: 1097" width=30><COL style="WIDTH: 53pt; mso-width-source: userset; mso-width-alt: 2560" width=70><COL style="WIDTH: 338pt; mso-width-source: userset; mso-width-alt: 16493" width=451><COL style="WIDTH: 23pt; mso-width-source: userset; mso-width-alt: 1097" width=30><COL style="WIDTH: 19pt; mso-width-source: userset; mso-width-alt: 914" width=25><TBODY>[TR]
[TD="class: xl2625753, width: 30"]*[/TD]
[TD="class: xl2625753, width: 70"]*[/TD]
[TD="class: xl2625753, width: 451"]*[/TD]
[TD="class: xl2625753, width: 30"]*[/TD]
[TD="class: xl2625753, width: 25"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2925753"]STEP[/TD]
[TD="class: xl3725753"]*' HOW* J[/TD]
[TD="class: xl2225753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl3525753"]1)[/TD]
[TD="class: xl3225753, width: 451"]*Press Alt-F11 to display the Visual Basic editor (VBE).[/TD]
[TD="class: xl3425753"]þ[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2725753"]*[/TD]
[TD="class: xl2725753"]*[/TD]
[TD="class: xl3025753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl3525753"]2)[/TD]
[TD="class: xl3225753, width: 451"]*In the Project Explorer window, find the ThisWorkbook object. If you don't see the Project Explorer window, press Ctrl-R.[/TD]
[TD="class: xl3425753"]þ[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2725753"]*[/TD]
[TD="class: xl2725753"]*[/TD]
[TD="class: xl3025753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl3525753"]3)[/TD]
[TD="class: xl3225753, width: 451"]*Double-click the Thisworkbook object in the Project Explorer window.[/TD]
[TD="class: xl3425753"]þ[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2725753"]*[/TD]
[TD="class: xl2725753"]*[/TD]
[TD="class: xl3025753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl3525753"]4)[/TD]
[TD="class: xl3225753, width: 451"]*Above the code window, you'll find two drop-down lists. In the list on the left, choose Workbook. In the list on the right, choose Open.[/TD]
[TD="class: xl3425753"]þ[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2725753"]*[/TD]
[TD="class: xl2725753"]*[/TD]
[TD="class: xl3025753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl3525753"]5)[/TD]
[TD="class: xl3225753, width: 451"]*A procedure template for Workbook_Open now appears in the code window. Between the Private Sub line and the End Sub line, type in your procedure.[/TD]
[TD="class: xl3425753"]þ[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2725753"]*[/TD]
[TD="class: xl2725753"]*[/TD]
[TD="class: xl3025753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl3625753"]eg.[/TD]
[TD="class: xl3225753, width: 451"]For examplecode, for your Workbook_Open procedure would look like this:[/TD]
[TD="class: xl3425753"]þ[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2725753"]*[/TD]
[TD="class: xl2725753"]*[/TD]
[TD="class: xl3025753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl3625753"]Code:[/TD]
[TD="class: xl3325753, width: 451"]Private Sub Workbook_Open( )
******* Sheets ("Sheet1").Activate
End Sub
[/TD]
[TD="class: xl3425753"]þ[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2525753"]*[/TD]
[TD="class: xl2325753, width: 451"]*[/TD]
[TD="class: xl3025753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2825753"]*[/TD]
[TD="class: xl3225753, width: 451"]Just change "Sheet1" to your sheet name.
Note if you want it to always show a particular range then change to;
Application.Goto Sheets("Sheet2").Range("A1"), True[/TD]
[TD="class: xl3125753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2525753"]*[/TD]
[TD="class: xl2325753, width: 451"]*[/TD]
[TD="class: xl3025753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2825753"]*[/TD]
[TD="class: xl2425753, width: 451"]*[/TD]
[TD="class: xl3125753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
[TR]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[TD="class: xl2625753"]*[/TD]
[/TR]
</TBODY>[/TABLE]