ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Always Open to the same worksheet (https://www.excelbanter.com/excel-programming/345326-always-open-same-worksheet.html)

RJG

Always Open to the same worksheet
 
When my workbook opens I want it to always open to "sheet1" which I
have renamed as "Menu" and the active cell to be D7.

This menu sheet allows the user to incert dates, however when the sheet
is opened it still has the last dates in place, is it possible to open
the worksheet "menu" and if there is anything in cells f4, f8, or f12
to delete it and then have the curser finish in active cell D7.

With thanks

Bob


Dave Peterson

Always Open to the same worksheet
 
Put this in a general module:

Option Explicit
sub auto_open()

worksheets("Menu").select
range("f4,f8,f12").clearcontents
range("d7").select

end sub


RJG wrote:

When my workbook opens I want it to always open to "sheet1" which I
have renamed as "Menu" and the active cell to be D7.

This menu sheet allows the user to incert dates, however when the sheet
is opened it still has the last dates in place, is it possible to open
the worksheet "menu" and if there is anything in cells f4, f8, or f12
to delete it and then have the curser finish in active cell D7.

With thanks

Bob


--

Dave Peterson

RJG

Always Open to the same worksheet
 
Dave,
Thank you.

Bob



All times are GMT +1. The time now is 12:18 AM.

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