ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Cell Selection in Excel (https://www.excelbanter.com/excel-discussion-misc-queries/140657-cell-selection-excel.html)

RM Batcha

Cell Selection in Excel
 
Whenever I open a Worksheet/Workbook I want a particular cell, say A1, should
be selected irrespective of which cell was selected when I last saved the
Worksheet/Workbook. Any suggestions pls.?

Bob Phillips

Cell Selection in Excel
 
Private Sub Workbook_Activate()
ActiveSheet.Range("A1").Select
End Sub

Private Sub Workbook_SheetActivate(ByVal Sh As Object)
Sh.Range("A1").Select
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"RM Batcha" wrote in message
...
Whenever I open a Worksheet/Workbook I want a particular cell, say A1,
should
be selected irrespective of which cell was selected when I last saved the
Worksheet/Workbook. Any suggestions pls.?





All times are GMT +1. The time now is 08:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com