![]() |
![]() |
|
|||||||
| 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 |
|
Board Regular
Join Date: May 2002
Location: Tennessee, USA
Posts: 72
|
Can I set up a worksheet so that, when it is opened, it will have the same cell in the upper left corner regardless of how the sheet was shifted prior to the last save?
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Yes, with an Auto_Open macro.
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: May 2002
Location: Tennessee, USA
Posts: 72
|
Thanks, Mark. I'll try to get this set up and see how it works. I'd searched Help and this forum, but didn't really know what keywords to use so I didn't get very far.
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Portland, OR USA
Posts: 1,374
|
Use the Workbook_Open event. Something like this:
Private Sub Workbook_Open() Application.Goto Range("G20"), True End Sub - replace the Range("G20") with something denoting the cell you want to have in the upper-left. If you don't know how to get to the Workbook events, let us know. Hope this helps, Russell |
|
|
|
|
|
#5 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Russell, I believe you'll need to go to another cell that's "off screen" before you go to the desired cell. Otherwise, you might not position the active cell in the upper-left corner of the window.
|
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Portland, OR USA
Posts: 1,374
|
Correct as usual, Mark. So maybe put a line above the GoTo line - something like this:
Range("A65000").Select |
|
|
|
|
|
#7 |
|
Board Regular
Join Date: Feb 2002
Posts: 50
|
You could hyperlink to a named cell.
To name a cell click on the name box in top left hand corner of the worksheet enter the name click enter. this will then act as a bookmark so a hyperlink to workbook.xls#name opens workbook with the cell named name in top left hand corner. Lewis |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|