ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Open workbook with the same sheet every time (https://www.excelbanter.com/excel-programming/393366-open-workbook-same-sheet-every-time.html)

cavasta

Open workbook with the same sheet every time
 
Can someone provide me with the code I need for the following:
If, say, I've got three worksheets - 1, 2 and 3 - how do I get the workbook
to open with sheet 2 every time?
Thanks
Ed

User[_2_]

Open workbook with the same sheet every time
 
On Jul 15, 2:08 pm, cavasta wrote:
Can someone provide me with the code I need for the following:
If, say, I've got three worksheets - 1, 2 and 3 - how do I get the workbook
to open with sheet 2 every time?
Thanks
Ed


Hi cavasta,

go to you workbook's open even and write the following code.

sheet2.activate

bye,

naweed


cavasta

Open workbook with the same sheet every time
 
Thanks very much Naweed. That's just what I wanted.
Ed

"User" wrote:

Hi cavasta,

go to you workbook's open even and write the following code.

sheet2.activate

bye,

naweed




All times are GMT +1. The time now is 10:33 AM.

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