Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default How to I make sure that my workbook always opens with a desired sh

Hi!
I've got a problem. I want to make sure that everytime I open a workbook, to
make it open always with the same page/sheet I want, because normally it will
open the sheet you were working on last.(before you closed it).
so please if someone can help me.



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 179
Default How to I make sure that my workbook always opens with a desired sh

Hi Shariq

you could put following code in the ThisWorkbook part:

Private Sub Workbook_Open()
ActiveWorkbook.Sheets("xxxxx").Activate
End Sub

where "xxxxx" is the name of the sheet you want to open.

hth Carlo

"Shariq" wrote:

Hi!
I've got a problem. I want to make sure that everytime I open a workbook, to
make it open always with the same page/sheet I want, because normally it will
open the sheet you were working on last.(before you closed it).
so please if someone can help me.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default How to I make sure that my workbook always opens with a desire

Hi Carlo!
First of all thanx for your reply, I've done what you said, perhaps
something missing yet or I'm doing something wrong, but the problem still
persist, it still goes to the sheet, I was working last, can you maybe give
me some more tips.
Shariq,


"Carlo" wrote:

Hi Shariq

you could put following code in the ThisWorkbook part:

Private Sub Workbook_Open()
ActiveWorkbook.Sheets("xxxxx").Activate
End Sub

where "xxxxx" is the name of the sheet you want to open.

hth Carlo

"Shariq" wrote:

Hi!
I've got a problem. I want to make sure that everytime I open a workbook, to
make it open always with the same page/sheet I want, because normally it will
open the sheet you were working on last.(before you closed it).
so please if someone can help me.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 179
Default How to I make sure that my workbook always opens with a desire

Hi Shariq

tell me what you did exactly, so that i can follow your steps.
- Where did you put the code
- What name did you enter
and so on.

Carlo

"Shariq" wrote:

Hi Carlo!
First of all thanx for your reply, I've done what you said, perhaps
something missing yet or I'm doing something wrong, but the problem still
persist, it still goes to the sheet, I was working last, can you maybe give
me some more tips.
Shariq,


"Carlo" wrote:

Hi Shariq

you could put following code in the ThisWorkbook part:

Private Sub Workbook_Open()
ActiveWorkbook.Sheets("xxxxx").Activate
End Sub

where "xxxxx" is the name of the sheet you want to open.

hth Carlo

"Shariq" wrote:

Hi!
I've got a problem. I want to make sure that everytime I open a workbook, to
make it open always with the same page/sheet I want, because normally it will
open the sheet you were working on last.(before you closed it).
so please if someone can help me.



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default How to I make sure that my workbook always opens with a desire

After opening the workbook, I clicked on the bottom, clicked on view code and
followed the rest in fact I copied and paste that what you had sent me, only
the sheet name I had changedin (brakets), then closed the workbook, reopened
it but it still didn't work.
So tell me if I've done something wrong, or I have to do some more in
addition to that.
thanx again,
Shariq

"Carlo" wrote:

Hi Shariq

tell me what you did exactly, so that i can follow your steps.
- Where did you put the code
- What name did you enter
and so on.

Carlo

"Shariq" wrote:

Hi Carlo!
First of all thanx for your reply, I've done what you said, perhaps
something missing yet or I'm doing something wrong, but the problem still
persist, it still goes to the sheet, I was working last, can you maybe give
me some more tips.
Shariq,


"Carlo" wrote:

Hi Shariq

you could put following code in the ThisWorkbook part:

Private Sub Workbook_Open()
ActiveWorkbook.Sheets("xxxxx").Activate
End Sub

where "xxxxx" is the name of the sheet you want to open.

hth Carlo

"Shariq" wrote:

Hi!
I've got a problem. I want to make sure that everytime I open a workbook, to
make it open always with the same page/sheet I want, because normally it will
open the sheet you were working on last.(before you closed it).
so please if someone can help me.





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 179
Default How to I make sure that my workbook always opens with a desire

Hi Shariq

after you click "view code" Excel shows you the VBA-editor. But there you are
changeing the Code of the Sheet and not the one of the Book. So, in the
Project-
Explorer (Ctrl + R) you can go to the "thisWorkbook" and paste the code in
there.
You have to be careful, that you enter the name with "".

hope it works now

Cheers
Carlo

"Shariq" wrote:

After opening the workbook, I clicked on the bottom, clicked on view code and
followed the rest in fact I copied and paste that what you had sent me, only
the sheet name I had changedin (brakets), then closed the workbook, reopened
it but it still didn't work.
So tell me if I've done something wrong, or I have to do some more in
addition to that.
thanx again,
Shariq

"Carlo" wrote:

Hi Shariq

tell me what you did exactly, so that i can follow your steps.
- Where did you put the code
- What name did you enter
and so on.

Carlo

"Shariq" wrote:

Hi Carlo!
First of all thanx for your reply, I've done what you said, perhaps
something missing yet or I'm doing something wrong, but the problem still
persist, it still goes to the sheet, I was working last, can you maybe give
me some more tips.
Shariq,


"Carlo" wrote:

Hi Shariq

you could put following code in the ThisWorkbook part:

Private Sub Workbook_Open()
ActiveWorkbook.Sheets("xxxxx").Activate
End Sub

where "xxxxx" is the name of the sheet you want to open.

hth Carlo

"Shariq" wrote:

Hi!
I've got a problem. I want to make sure that everytime I open a workbook, to
make it open always with the same page/sheet I want, because normally it will
open the sheet you were working on last.(before you closed it).
so please if someone can help me.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
make multiple copies of a sheet in a new workbook galeanne Excel Worksheet Functions 4 April 9th 23 12:50 PM
Personal workbook opens when Excel opens SheriTingle Excel Discussion (Misc queries) 2 March 30th 05 12:22 AM
Winn98SE, Excel2000: ODBC query opens the source workbook Arvi Laanemets Excel Discussion (Misc queries) 9 March 10th 05 06:32 AM
When opening an existing workbook, Excel opens but not the workbo. llhughes Excel Discussion (Misc queries) 1 February 12th 05 07:41 PM
Workbook opens twice Ron Excel Discussion (Misc queries) 1 December 1st 04 08:45 PM


All times are GMT +1. The time now is 04:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"