![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Feb 2002
Location: Netherlands
Posts: 3
|
Is there a macro I can use, that opens an excelsheet alway on the same sheet of a workbook.??
Second question: Is it possible to write a macro that lets you always move from cell to cell by useing tab Within a range of for example Cell A1:D10. |
|
|
|
|
|
#2 | ||
|
Board Regular
Join Date: Feb 2002
Location: Chippenham, UK
Posts: 136
|
Quote:
Open the VBA editor, double click on ThisWorkbook for the workbook that you would like to have a specific sheet activated on and paste in this code: Private Sub Workbook_Open() 'Activates a named sheet when the workbook is opened. ' Rename Sheet2 with the name of the sheet you would like to activate on opening. Worksheets("Sheet2").Activate End Sub Quote:
Regards, Gary Hewitt-Long [ This Message was edited by: gplhl on 2002-02-24 03:01 ] |
||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|